fix web attachments and ws

This commit is contained in:
geweald
2021-11-10 18:22:16 +01:00
parent 914c9cc137
commit 7f8f4a91c7
2 changed files with 3 additions and 1 deletions
@@ -121,7 +121,8 @@ class WebSocket with TimerHelper {
_logger?.info('Closing connection with $baseUrl');
if (_webSocketChannel != null) {
_unsubscribeFromWebSocketChannel();
_webSocketChannel?.sink.close(status.goingAway);
_webSocketChannel?.sink
.close(_manuallyClosed ? status.normalClosure : status.goingAway);
_webSocketChannel = null;
}
}