Skip to content

Commit

Permalink
fix: fast domain reload with Kcp
Browse files Browse the repository at this point in the history
fixes #547
  • Loading branch information
paulpach committed Jan 30, 2021
1 parent 8db98db commit bd3676d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Assets/Mirror/Runtime/Transport/Kcp/KcpTransport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class KcpTransport : Transport
private long receivedBytes;
private long sentBytes;

private AutoResetUniTaskCompletionSource ListenCompletionSource;
private UniTaskCompletionSource ListenCompletionSource;

/// <summary>
/// Open up the port and listen for connections
Expand All @@ -56,7 +56,7 @@ public override UniTask ListenAsync()
// transport started
Started?.Invoke();

ListenCompletionSource = AutoResetUniTaskCompletionSource.Create();
ListenCompletionSource = new UniTaskCompletionSource();
return ListenCompletionSource.Task;
}
catch (Exception ex)
Expand Down

0 comments on commit bd3676d

Please sign in to comment.