1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 07:13:58 -05:00

don't use cancellation token when persisting meta on quit

This commit is contained in:
RaidMax
2022-04-28 10:14:35 -05:00
parent becfb4fa7b
commit 2f36723fe6

View File

@ -573,10 +573,8 @@ namespace IW4MAdmin
Time = DateTime.UtcNow
});
await _metaService.SetPersistentMeta("LastMapPlayed", CurrentMap.Alias, E.Origin.ClientId,
Manager.CancellationToken);
await _metaService.SetPersistentMeta("LastServerPlayed", E.Owner.Hostname, E.Origin.ClientId,
Manager.CancellationToken);
await _metaService.SetPersistentMeta("LastMapPlayed", CurrentMap.Alias, E.Origin.ClientId);
await _metaService.SetPersistentMeta("LastServerPlayed", E.Owner.Hostname, E.Origin.ClientId);
}
else if (E.Type == GameEvent.EventType.PreDisconnect)