Default to stopped if server is null
parent
cf706a71a7
commit
eb07d33ed5
|
@ -228,6 +228,9 @@ namespace LANCommander.Services
|
||||||
{
|
{
|
||||||
Process process = null;
|
Process process = null;
|
||||||
|
|
||||||
|
if (server == null)
|
||||||
|
return ServerProcessStatus.Stopped;
|
||||||
|
|
||||||
if (Processes.ContainsKey(server.Id))
|
if (Processes.ContainsKey(server.Id))
|
||||||
process = Processes[server.Id];
|
process = Processes[server.Id];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue