Ver Fonte

RemoteConsole: prevent null access on connections

Yuxiao Mao há 7 meses atrás
pai
commit
7bcfa59600
1 ficheiros alterados com 1 adições e 0 exclusões
  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 ) {