From 1bae8a822de36e9ce8a719b5b76d764f04d32410 Mon Sep 17 00:00:00 2001 From: KRKeegan Date: Sat, 23 Nov 2013 13:02:41 -0800 Subject: [PATCH] Insteon: Prevent Calling Success Callback if No Active Message --- lib/Insteon/BaseInsteon.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Insteon/BaseInsteon.pm b/lib/Insteon/BaseInsteon.pm index d115da551..00b797014 100644 --- a/lib/Insteon/BaseInsteon.pm +++ b/lib/Insteon/BaseInsteon.pm @@ -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