Skip to content

Closed WebSocket doesn't stop pinging #252

@nietsuu

Description

@nietsuu

Pseudocode:

ws = unified_trading.WebSocket()
ws.exit()

The websocket closes just fine. But it throws nonstop errors afterwards because the websocket is still trying to ping even though it's already closed.

This should be fixed easily in the _WebSocketManager._send_custom_ping method by checking if the ws is already closed.

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