Call onClosed function if websocket is disconneced
This commit is contained in:
parent
900ae4e1ea
commit
841230fe80
1 changed files with 5 additions and 0 deletions
|
@ -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("<br>", " "))
|
||||
|
||||
|
|
Loading…
Reference in a new issue