Skip to content

WebSocket_netcore45.cs - DoClose exception #3

@LostLogic

Description

@LostLogic

DoClose can be called before datawriter is set. By calling dataWriter.Disposed() a null reference exception is triggered.

Recommend a null check before disposing and setting it to null:
if (dataWriter != null)
{
dataWriter.Dispose();
dataWriter = null;
}

Line 265

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