mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-18 09:35:48 +00:00
Fixed a bug that would prevent auto processes from sending through broadcast messages to the clients.
This commit is contained in:
parent
8d84f67bd9
commit
9d4d49560e
12 changed files with 107 additions and 78 deletions
|
|
@ -197,7 +197,7 @@ namespace ServerManagerTool.Lib
|
|||
|
||||
var endpoint = new IPEndPoint(this.rconParams.RCONHostIP, this.rconParams.RCONPort);
|
||||
var server = QueryMaster.ServerQuery.GetServerInstance(QueryMaster.EngineType.Source, endpoint);
|
||||
this.console = server.GetControl(this.rconParams.AdminPassword);
|
||||
this.console = server.GetControl(this.rconParams.RCONPassword);
|
||||
return this.console != null;
|
||||
}
|
||||
|
||||
|
|
@ -473,7 +473,7 @@ namespace ServerManagerTool.Lib
|
|||
}
|
||||
|
||||
this.maxCommandRetries = 10;
|
||||
_errorLogger.Error($"Failed to connect to RCON at {this.rconParams.RCONHostIP}:{this.rconParams.RCONPort} with {this.rconParams.AdminPassword}. {lastException.Message}");
|
||||
_errorLogger.Error($"Failed to connect to RCON at {this.rconParams.RCONHostIP}:{this.rconParams.RCONPort} with {this.rconParams.RCONPassword}. {lastException.Message}");
|
||||
throw new Exception($"Command failed to send after {maxCommandRetries} attempts. Last exception: {lastException.Message}", lastException);
|
||||
}
|
||||
#endregion
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue