Skip to content

TwitchConnection.WriteThread check connection #18

@lexonegit

Description

@lexonegit

TwitchConnection.WriteThread.cs at line 19:
var stream = tcpClient.GetStream();

can sometimes give this error:
InvalidOperationException: The operation is not allowed on non-connected sockets.

Very random, impossible to reproduce. But maybe add something to verify that TCPClient is actually connected before doing anything.

(issue probably exists in TwitchConnection.ReadThread.cs too)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions