Default to stopped if server is null

This commit is contained in:
Pat Hartl 2023-08-30 19:45:42 -05:00
parent cf706a71a7
commit eb07d33ed5

View file

@ -228,6 +228,9 @@ namespace LANCommander.Services
{
Process process = null;
if (server == null)
return ServerProcessStatus.Stopped;
if (Processes.ContainsKey(server.Id))
process = Processes[server.Id];