Explorar el Código

RemoteConsole: prevent null access on connections

Yuxiao Mao hace 7 meses
padre
commit
7bcfa59600
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      hrt/impl/RemoteConsole.hx

+ 1 - 0
hrt/impl/RemoteConsole.hx

@@ -27,6 +27,7 @@ class RemoteConsole {
 	public function new( ?port : Int, ?host : String ) {
 		this.host = host ?? DEFAULT_HOST;
 		this.port = port ?? DEFAULT_PORT;
+		this.connections = [];
 	}
 
 	public function startServer( ?onClient : RemoteConsoleConnection->Void ) {