changeset 2029:3e00cd4a02bc

mod_component_client: Pass a non-zero exit code on shutdown due to lost connection `prosody.shutdown` takes a code as of https://hg.prosody.im/0.10/rev/a22d6a46d2ed
author daurnimator <quae@daurnimator.com>
date Wed, 20 Jan 2016 13:10:50 +1100
parents 530bf8ef2e55
children 66156e4d5274
files mod_component_client/mod_component_client.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_component_client/mod_component_client.lua	Tue Jan 19 19:52:45 2016 +0100
+++ b/mod_component_client/mod_component_client.lua	Wed Jan 20 13:10:50 2016 +1100
@@ -215,7 +215,7 @@
 	module:log("error", "connection lost");
 	module:fire_event("component_client/disconnected", { reason = err });
 	if exit_on_disconnect and not prosody.shutdown_reason then
-		prosody.shutdown("Shutdown by component_client disconnect");
+		prosody.shutdown("Shutdown by component_client disconnect", 1);
 	end
 end