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:
f22c2f2
)
Bug fix: Connections not properly closed.
author
Benjamin Braatz
<bb@bbraatz.eu>
Tue, 26 Oct 2021 15:21:40 +0000
(17:21 +0200)
committer
Benjamin Braatz
<bb@bbraatz.eu>
Tue, 26 Oct 2021 15:21:40 +0000
(17:21 +0200)
controlpi_plugins/wsserver.py
patch
|
blob
|
history
diff --git
a/controlpi_plugins/wsserver.py
b/controlpi_plugins/wsserver.py
index 599a856cd0ec77b0efbebf8257367ae8760eb8fe..6e5db0af6bdf6a554a7f7bc80f5f276909d6f198 100644
(file)
--- a/
controlpi_plugins/wsserver.py
+++ b/
controlpi_plugins/wsserver.py
@@
-93,9
+93,10
@@
class Connection:
else:
await self._bus.send(Message(self._name, message))
except ConnectionClosed:
- await self._bus.send(Message(self._name,
- {'event': 'connection closed'}))
- self._bus.unregister(self._name)
+ pass
+ await self._bus.send(Message(self._name,
+ {'event': 'connection closed'}))
+ self._bus.unregister(self._name)
Response = Optional[Tuple[http.HTTPStatus, Headers, bytes]]