diff options
-rw-r--r-- | plugins/mod_smacks.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_smacks.lua b/plugins/mod_smacks.lua index c868bf70..ce5580cd 100644 --- a/plugins/mod_smacks.lua +++ b/plugins/mod_smacks.lua @@ -504,7 +504,7 @@ function handle_resume(session, stanza, xmlns_sm) original_session.log("debug", "Letting the watchdog go"); original_session.hibernating_watchdog:cancel(); original_session.hibernating_watchdog = nil; - else + elseif session.hibernating then original_session.log("error", "Hibernating session has no watchdog!") end session.log("debug", "mod_smacks resuming existing session %s...", get_session_id(original_session)); |