Skip to content

TcpClient.Close() throws ObjectDisposedException when disposing of the writer #7

@jupjohn

Description

@jupjohn

I've encountered a crash when calling ITwitchClient.Disconnect() where TcpClient.Close() (all implementations) will throw when disposing of the StreamWriter. This seems to be caused by the line before that disposes of the client's StreamReader which indirectly closes the SslStream shared with the StreamWriter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions