Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when SocketClient.Dispose() is called #22

Open
PhongPham0909 opened this issue Sep 30, 2022 · 0 comments
Open

Crash when SocketClient.Dispose() is called #22

PhongPham0909 opened this issue Sep 30, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@PhongPham0909
Copy link

PhongPham0909 commented Sep 30, 2022

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

@PhongPham0909 PhongPham0909 added the bug Something isn't working label Sep 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant