2
0
Эх сурвалжийг харах

RemoteConsole: fix sendCommand after close null access

Yuxiao Mao 6 сар өмнө
parent
commit
167c69583f

+ 2 - 0
hrt/impl/RemoteConsole.hx

@@ -162,6 +162,8 @@ class RemoteConsoleConnection {
 	}
 
 	public function sendCommand( cmd : String, ?args : Dynamic, ?onResult : Dynamic -> Void ) {
+		if( sock == null )
+			return;
 		var id = ++UID;
 		waitReply.set(id, onResult);
 		sendData(cmd, args, id);