Software /
code /
prosody-modules
Diff
mod_component_client/mod_component_client.lua @ 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 |
parent | 1343:7dbde05b48a9 |
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