diff --git a/Buttplug/Client/ButtplugWebsocketConnector.cs b/Buttplug/Client/ButtplugWebsocketConnector.cs index 074df1c8..c7cd5c95 100644 --- a/Buttplug/Client/ButtplugWebsocketConnector.cs +++ b/Buttplug/Client/ButtplugWebsocketConnector.cs @@ -132,7 +132,7 @@ private async Task RunClientLoop(CancellationToken token) if (_wsClient != null) { // Clean up the websocket and fire the disconnection event. - _wsClient.CloseAsync(WebSocketCloseStatus.NormalClosure, "Closing", CancellationToken.None).Dispose(); + _ = _wsClient.CloseAsync(WebSocketCloseStatus.NormalClosure, "Closing", CancellationToken.None); _wsClient = null; } // If we somehow still have some live messages, throw exceptions so they aren't stuck.