Skip to content

Commit

Permalink
Fix asynchronous close of websocket
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcelo Amaro committed Feb 9, 2023
1 parent c4a4efd commit e1ef19a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/protocol/network/web_socket_transport.dart
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class WebSocketTransport implements Transport {

@override
Future<void> close() async {
socket?.close();
await socket?.close();
onClose.sink.add(true);
}

Expand Down

0 comments on commit e1ef19a

Please sign in to comment.