Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ EnsureKeepAliveOperation()

void System.Net.WebSockets.WebSocketBase.EnsureKeepAliveOperation ( )
inlineprivate

Definition at line 1397 of file WebSocketBase.cs.

1398 {
1399 if (_keepAliveOperation != null)
1400 {
1401 return;
1402 }
1403 lock (_thisLock)
1404 {
1405 if (_keepAliveOperation == null)
1406 {
1407 WebSocketOperation.SendOperation sendOperation = new WebSocketOperation.SendOperation(this);
1408 sendOperation.BufferType = WebSocketProtocolComponent.BufferType.UnsolicitedPong;
1410 }
1411 }
1412 }
volatile WebSocketOperation.SendOperation _keepAliveOperation

References System.Net.WebSockets.WebSocketBase._keepAliveOperation, and System.Net.WebSockets.WebSocketBase._thisLock.