Skip to content

Crash when SocketClient.Dispose() is called #22

@PhongPham0909

Description

@PhongPham0909

Describe the bug

Library throw exception "The CancellationTokenSource has been disposed" when SocketClient.Dispose() is called

Bug log:
image

iOSWebSocket.Dispose ()
SIGABRT: The Cancellation TokenSource has been disposed.

Stack traces
CancellationTokenSource.Cancel (System. Boolean thrownFirstException)
CancellationTokenSource.Cancel ()
TaskWorker. Dispose ()
WebSocketClient.Dispose ()
EngineIoClient.Dispose ()
SocketIoClient.Dispose ()
iOSWebSocket.Dispose ()

Code of your library:
image

Steps to reproduce the bug

Run SocketClient.Dispose() many times

Expected behavior

No response

Screenshots

No response

NuGet package version

1.2.7

Platform

No response

IDE

No response

Additional context

No response

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