Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

Prevent ODE when ReadStart/Stop() is queued after disposal #1355

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -286,12 +286,22 @@ private void OnRead(UvStreamHandle handle, int status)

void IConnectionControl.Pause()
{
if (_socket.IsClosed)
{
return;
}

Log.ConnectionPause(ConnectionId);
_socket.ReadStop();
}

void IConnectionControl.Resume()
{
if (_socket.IsClosed)
{
return;
}

Log.ConnectionResume(ConnectionId);
try
{
Expand Down