Skip to content

Commit

Permalink
Merge pull request #284 from krkeegan/insteon_callback
Browse files Browse the repository at this point in the history
Insteon: Only Call Success_Callback if Active_Message Exists
  • Loading branch information
krkeegan committed Oct 13, 2013
2 parents ea5e4d0 + 10da6c8 commit 99b1f3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Insteon/BaseInterface.pm
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ sub on_extended_insteon_received
}
&::print_log("[Insteon::BaseInterface] Processing message for " . $object->get_object_name) if $main::Debug{insteon} >=3;
if($object->_process_message($self, %msg)) {
if ($self->active_message->success_callback){
if (ref $self->active_message && $self->active_message->success_callback){
main::print_log("[Insteon::BaseInterface] DEBUG4: Now calling message success callback: "
. $self->active_message->success_callback) if $main::Debug{insteon} >= 4;
package main;
Expand Down

0 comments on commit 99b1f3c

Please sign in to comment.