runelite-client: fix npe in websocket close
This commit is contained in:
@@ -99,7 +99,10 @@ public class WSClient extends WebSocketListener implements AutoCloseable
|
|||||||
@Override
|
@Override
|
||||||
public void close()
|
public void close()
|
||||||
{
|
{
|
||||||
webSocket.close(1000, null);
|
if (webSocket != null)
|
||||||
|
{
|
||||||
|
webSocket.close(1000, null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user