We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16b8115 commit 491f56dCopy full SHA for 491f56d
1 file changed
osu.Game.Rulesets.Sentakki/IO/GameplayEventBroadcaster.cs
@@ -1,6 +1,7 @@
1
using System;
2
using System.IO;
3
using System.IO.Pipes;
4
+using System.Net.Sockets;
5
using System.Threading;
6
using System.Threading.Tasks;
7
@@ -34,7 +35,13 @@ private async void attemptConnection()
34
35
isWaitingForClient = true;
36
37
try { await pipeServer.WaitForConnectionAsync(cancellationToken).ConfigureAwait(false); }
- catch (TaskCanceledException) { return; }
38
+ catch (Exception e)
39
+ {
40
+ // The operation was canceled. Gracefully shutdown;
41
+ if (e is TaskCanceledException || (e is SocketException se && se.SocketErrorCode == SocketError.OperationAborted))
42
+ return;
43
+ throw;
44
+ }
45
46
isWaitingForClient = false;
47
0 commit comments