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
--- 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