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

Pass exception to Complete #1739

Merged
merged 1 commit into from
Apr 22, 2017
Merged
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 @@ -210,12 +210,12 @@ private void StartReading()
{
_socket.ReadStart(_allocCallback, _readCallback, this);
}
catch (UvException)
catch (UvException ex)
{
// ReadStart() can throw a UvException in some cases (e.g. socket is no longer connected).
// This should be treated the same as OnRead() seeing a "normalDone" condition.
Log.ConnectionReadFin(ConnectionId);
Input.Complete();
Input.Complete(new IOException(ex.Message, ex));
}
}
}
Expand Down