Skip to content

Commit

Permalink
Merge pull request #324 from krkeegan/fix_success_callback
Browse files Browse the repository at this point in the history
Insteon: Prevent Calling Success Callback if No Active Message
  • Loading branch information
krkeegan committed Nov 23, 2013
2 parents dcb3227 + 1bae8a8 commit 91867fe
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 91867fe

Please sign in to comment.