Substituted extension method for normal equivalent.

This commit is contained in:
Harrison Deng 2021-04-08 22:25:59 -05:00
parent 220839919b
commit 455efcbfe3

View File

@ -183,7 +183,7 @@ namespace GameServiceWarden.Core.Games
break; break;
case false: case false:
ServiceDescriptor removed; ServiceDescriptor removed;
if (running.Remove(serviceInfo.ServiceName, out removed)) { if (running.TryRemove(serviceInfo.ServiceName, out removed)) {
removed.ServiceStateChangeEvent -= OnServiceStateChange; removed.ServiceStateChangeEvent -= OnServiceStateChange;
services[serviceInfo.ServiceName] = removed; services[serviceInfo.ServiceName] = removed;
managerChange.delta = true; managerChange.delta = true;