Merge branch 'fix/web-att-ws' into fix-web-attachments

This commit is contained in:
geweald
2021-11-15 11:25:03 +01:00
3 changed files with 112 additions and 99 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;
}
}