Default to stopped if server is null

dhcp-server
Pat Hartl 2023-08-30 19:45:42 -05:00
parent cf706a71a7
commit eb07d33ed5
1 changed files with 3 additions and 0 deletions

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];