-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Cannot access a disposed object. #45
Comments
I couldn't understand your use case.
|
It is weird I am not able to reproduce again I have found this in my logs so it looks like it works.
I will try to reproduce again otherwise I will close this issue. |
Reproduced again.
I wonder why there it hit General Exception instead of ObjectDisposedException
|
Describe the bug
When my client was disconnected it throws exception
My usage:
Steps to reproduce the bug
Just stop IPC server
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'System.Timers.Timer'.
at void System.Timers.Timer.set_Enabled(bool value)
at async Task H.Pipes.PipeClient.ConnectAsync(CancellationToken cancellationToken) in //src/libs/H.Pipes/PipeClient.cs:line 173
at async Task Ipc.Client.BaseIpcClient.Start(CancellationToken cancellationToken) in //src/Ipc/Client/BaseIpcClient.cs:line 141
at async void Ipc.Client.BaseIpcClient.ClientOnDisconnected(object , ConnectionEventArgs e) in //src/Ipc/Client/BaseIpcClient.cs:line 26
Expected behavior
No response
Screenshots
No response
NuGet package version
2.0.59
Platform
Console
IDE
Visual Studio 2022
Additional context
No response
The text was updated successfully, but these errors were encountered: