Page MenuHomeDevCentral

D825.id2089.diff
No OneTemporary

D825.id2089.diff

diff --git a/Wearg/Broker.tcl b/Wearg/Broker.tcl
--- a/Wearg/Broker.tcl
+++ b/Wearg/Broker.tcl
@@ -77,6 +77,13 @@
proc recover_from_broker_error {error} {
if {$error == "Child process signal received."} {
putdebug "Ignoring SIGCHLD"
+ } elseif {[string match "*server connection error 320*CONNECTION_FORCED*" $error]} {
+ # If the session doesn't allow the bot to process
+ # messages, we can ask the server to disconnect it.
+ # Log the error message, as management plugin
+ # allows to send a custom reason.
+ putdebug "$error / Trying to reconnect..."
+ connect
} elseif {$error == "Not connected."} {
connect
} else {

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 23, 14:27 (14 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2257554
Default Alt Text
D825.id2089.diff (655 B)

Event Timeline