Skip to content

Commit

Permalink
Insteon: Prevent Calling Success Callback if No Active Message
Browse files Browse the repository at this point in the history
  • Loading branch information
krkeegan committed Nov 23, 2013
1 parent b1f8f5d commit 1bae8a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Insteon/BaseInsteon.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1966,7 +1966,8 @@ sub _get_engine_version_failure
$self->engine_version('I2CS');
}
#Clear success callback, otherwise it will run when message is cleared
$self->interface->active_message->success_callback('0');
$self->interface->active_message->success_callback('0')
if (ref $self->interface->active_message);
}

=item C<ping([count])>
Expand Down

0 comments on commit 1bae8a8

Please sign in to comment.