git.graph-it.com
/
graphit
/
controlpi-wsserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d265e7b
)
Unregister closed connections
author
Benjamin Braatz
<bb@bbraatz.eu>
Fri, 5 Mar 2021 08:08:41 +0000
(09:08 +0100)
committer
Benjamin Braatz
<bb@bbraatz.eu>
Fri, 5 Mar 2021 08:08:41 +0000
(09:08 +0100)
controlpi-plugins/wsserver.py
patch
|
blob
|
history
diff --git
a/controlpi-plugins/wsserver.py
b/controlpi-plugins/wsserver.py
index b8a11104ddc450ec5b269c0af046109b41242c3b..e774526d6c8900904b46e0dfa3b0926dfd470cd1 100644
(file)
--- a/
controlpi-plugins/wsserver.py
+++ b/
controlpi-plugins/wsserver.py
@@
-49,6
+49,7
@@
class Connection:
pass
await self._bus.send({'sender': self._name,
'event': 'connection closed'})
+ self._bus.unregister(self._name)
Response = Optional[Tuple[HTTPStatus, Headers, bytes]]