mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-29 08:00:19 +01:00
Fix NullReferenceException
This commit is contained in:
@@ -182,7 +182,7 @@ namespace Tgstation.Server.Host.Components.Byond
|
||||
using (await SemaphoreSlimContext.Lock(semaphore, cancellationToken).ConfigureAwait(false))
|
||||
{
|
||||
await ioManager.WriteAllBytes(ActiveVersionFileName, Encoding.UTF8.GetBytes(versionKey), cancellationToken).ConfigureAwait(false);
|
||||
await eventConsumer.HandleEvent(EventType.ByondActiveVersionChange, new List<string> { VersionKey(ActiveVersion), versionKey }, cancellationToken).ConfigureAwait(false);
|
||||
await eventConsumer.HandleEvent(EventType.ByondActiveVersionChange, new List<string> { ActiveVersion != null ? VersionKey(ActiveVersion) : null, versionKey }, cancellationToken).ConfigureAwait(false);
|
||||
ActiveVersion = version;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user