Skip to content

Commit

Permalink
Added close 1000 to main websocket disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
CJBuchel committed Dec 1, 2024
1 parent a20a883 commit 854e4a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tms_client/lib/network/ws.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class WebsocketController {
Future<void> disconnect() async {
try {
TmsLogger().i("Disconnecting from TMS server...");
_channel?.sink.close();
_channel?.sink.close(1000);
} catch (e) {
TmsLogger().e("Error disconnecting from TMS server: $e");
}
Expand Down

0 comments on commit 854e4a4

Please sign in to comment.