# HG changeset patch # User Waqas Hussain # Date 1383346432 14400 # Node ID 6b9a56b959b8aa1a7c34aa89f679ea4893596709 # Parent f53475ee7ff4b29e7cdf76518d5a5c6ca7690df0 mod_component_client: When exit_on_disconnect=true, don't try to shutdown Prosody when it's already shutting down. diff -r f53475ee7ff4 -r 6b9a56b959b8 mod_component_client/mod_component_client.lua --- a/mod_component_client/mod_component_client.lua Thu Oct 31 21:58:01 2013 +0100 +++ b/mod_component_client/mod_component_client.lua Fri Nov 01 18:53:52 2013 -0400 @@ -214,7 +214,7 @@ __conn = nil; module:log("error", "connection lost"); module:fire_event("component_client/disconnected", { reason = err }); - if exit_on_disconnect then + if exit_on_disconnect and not prosody.shutdown_reason then prosody.shutdown("Shutdown by component_client disconnect"); end end