Skip to content

Commit 3d1a3c0

Browse files
committed
Account for OperationCanceledException
1 parent 16b8115 commit 3d1a3c0

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

osu.Game.Rulesets.Sentakki/IO/GameplayEventBroadcaster.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,14 @@ private async void attemptConnection()
3434
isWaitingForClient = true;
3535

3636
try { await pipeServer.WaitForConnectionAsync(cancellationToken).ConfigureAwait(false); }
37-
catch (TaskCanceledException) { return; }
37+
catch (Exception e)
38+
{
39+
// The operation was canceled. Gracefully shutdown;
40+
if (e is TaskCanceledException || e is OperationCanceledException)
41+
return;
42+
43+
throw;
44+
}
3845

3946
isWaitingForClient = false;
4047

0 commit comments

Comments
 (0)