Skip to content

Commit

Permalink
RemoteConsole: prevent null access on connections
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxiaomao committed Jan 29, 2025
1 parent 5619806 commit 7bcfa59
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hrt/impl/RemoteConsole.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down

0 comments on commit 7bcfa59

Please sign in to comment.