Skip to content

Commit

Permalink
Exception fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zabszk committed Mar 16, 2021
1 parent c7fd7c6 commit dd87bc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Core/LocalAdmin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -607,10 +607,10 @@ private void SetupReader()
{
if (!_processRefreshFail)
{
_gameProcess = Process.GetProcessById(_gameProcessId);

try
{
_gameProcess = Process.GetProcessById(_gameProcessId);

if (_gameProcess != null && _gameProcess.HasExited)
{
ConsoleUtil.WriteLine("Failed to send command - the game process was terminated...",
Expand Down

0 comments on commit dd87bc3

Please sign in to comment.