From 841230fe80ba4f2bc7f2a9e6d347748523a40916 Mon Sep 17 00:00:00 2001 From: shortcutme Date: Mon, 1 Jul 2019 16:27:20 +0200 Subject: [PATCH] Call onClosed function if websocket is disconneced --- src/Ui/UiWebsocket.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Ui/UiWebsocket.py b/src/Ui/UiWebsocket.py index 3ce032a5..44dd2dc3 100644 --- a/src/Ui/UiWebsocket.py +++ b/src/Ui/UiWebsocket.py @@ -91,6 +91,11 @@ class UiWebsocket(object): if not self.hasPlugin("Multiuser"): self.cmd("error", "Internal error: %s" % Debug.formatException(err, "html")) + self.onClosed() + + def onClosed(self): + pass + def dedent(self, text): return re.sub("[\\r\\n\\x20\\t]+", " ", text.strip().replace("
", " "))