Skip to content

Commit

Permalink
Merge pull request #2108 from tgstation/FixVersionAndShit [TGSDeploy]
Browse files Browse the repository at this point in the history
v6.13.0 (fr this time): Version Bump + Custom Event completion event failure fix
  • Loading branch information
Cyberboss authored Feb 9, 2025
2 parents 0d6fedf + 6fd12f9 commit fff93f4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build/Version.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<!-- Integration tests will ensure they match across the board -->
<Import Project="WebpanelVersion.props" />
<PropertyGroup>
<TgsCoreVersion>6.12.3</TgsCoreVersion>
<TgsCoreVersion>6.13.0</TgsCoreVersion>
<TgsConfigVersion>5.4.0</TgsConfigVersion>
<TgsRestVersion>10.12.1</TgsRestVersion>
<TgsGraphQLVersion>0.5.0</TgsGraphQLVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public sealed class BridgeParameters : DMApiParameters
public ushort? TopicPort { get; set; }

/// <summary>
/// The <see cref="Bridge.CustomEventInvocation"/> being triggered.
/// The <see cref="CustomEventInvocation"/> being triggered.
/// </summary>
public CustomEventInvocation? EventInvocation { get; set; }

Expand Down
16 changes: 14 additions & 2 deletions src/Tgstation.Server.Host/Components/Session/SessionController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1171,14 +1171,26 @@ async Task ProcessEvent()
{
try
{
await eventTask.Value;
Exception? exception;
try
{
await eventTask.Value;
exception = null;
}
catch (Exception ex)
{
exception = ex;
}

if (notifyCompletion.Value)
await SendCommand(
new TopicParameters(eventId),
cancellationToken);
else
else if (exception == null)
Logger.LogTrace("Finished custom event {eventId}, not sending notification.", eventId);

if (exception != null)
throw exception;
}
catch (OperationCanceledException ex)
{
Expand Down

0 comments on commit fff93f4

Please sign in to comment.