Skip to content

Commit 60197c0

Browse files
committed
Validate OnClientConnected event.
1 parent 65b3306 commit 60197c0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

QuicNet/QuicListener.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public void Receive()
5252
{
5353
if (!_started)
5454
throw new QuicListenerNotStartedException("Please call the Start() method before receving data.");
55-
55+
5656
while (true)
5757
{
5858
IPEndPoint endpoint = new IPEndPoint(IPAddress.Any, _port);
@@ -119,7 +119,7 @@ private void ProcessInitialPacket(Packet packet, IPEndPoint endPoint)
119119
QuicContext context = new QuicContext(_client, endPoint);
120120
ConnectionPool.AttachContext(cast.SourceConnectionId, context);
121121

122-
OnClientConnected(context);
122+
OnClientConnected?.Invoke(context);
123123
}
124124
}
125125

0 commit comments

Comments
 (0)