diff options
-rw-r--r-- | plugins/mod_smacks.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/mod_smacks.lua b/plugins/mod_smacks.lua index e8a52f99..caccb38a 100644 --- a/plugins/mod_smacks.lua +++ b/plugins/mod_smacks.lua @@ -630,6 +630,10 @@ module:hook("s2s-read-timeout", handle_read_timeout); module:hook("c2s-read-timeout", handle_read_timeout); module:hook_global("server-stopping", function(event) + if not local_sessions then + -- not a VirtualHost, no user sessions + return + end local reason = event.reason; -- Close smacks-enaled sessions ourselves instead of letting mod_c2s close -- it, which invalidates the smacks session. This allows preserving the |