Skip to content

Commit 9e5fced

Browse files
committed
checkpoint
1 parent a150881 commit 9e5fced

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

NatPunchFacillitator/FacilitatorService.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ void INatPunchListener.OnNatIntroductionRequest(IPEndPoint localEndPoint, IPEndP
132132
if (_waitingServers.ContainsKey(tokenData
133133
.gameToken)) // connect the server with the incoming request without queing
134134
{
135-
Console.WriteLine("Wait peer found, sending introduction...");
135+
Console.WriteLine($"Wait peer found for game '{tokenData.gameToken}', sending introduction...");
136136
//found in list - introduce client and host to eachother
137137
Console.WriteLine(
138138
"{4}: queued client{5} - i({0}) e({1})\n to server: i({2}) e({3})",
@@ -153,7 +153,7 @@ void INatPunchListener.OnNatIntroductionRequest(IPEndPoint localEndPoint, IPEndP
153153

154154

155155
//Clear dictionary of waiting client, because it's been introduced to the server
156-
Console.WriteLine("Removing client {6} from {5} wait queue",
156+
Console.WriteLine($"Removing client {6} from {5} wait queue for game '{waitPeer.GameToken}'",
157157
waitPeer.InternalAddr,
158158
waitPeer.ExternalAddr,
159159
localEndPoint,
@@ -342,7 +342,7 @@ public Task StartAsync(CancellationToken cancellationToken)
342342
public Task StopAsync(CancellationToken cancellationToken)
343343
{
344344
Console.WriteLine("StopAsync");
345-
_puncher.Stop();
345+
_puncher.Stop(); // TODO: fix ^C or other signals not catching in service task thread
346346
return Task.CompletedTask;
347347
}
348348
public void Dispose()

0 commit comments

Comments
 (0)