Skip to content

error on OnCompleted when disconnect #2

@mzelecom

Description

@mzelecom

on line ( _source.SetResult(BytesTransferred);) this error show.

System.InvalidOperationException: 'Operation is not valid due to the current state of the object.'
`
protected override void OnCompleted(SocketAsyncEventArgs args)
{
if (SocketError != SocketError.Success)
{
_source.SetException(new SocketException((int)SocketError));
}
_source.SetResult(BytesTransferred);
}

`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions