Skip to content

Fix: Change ConnectAsync return type to prevent unhandled exceptions …#492

Open
happtim wants to merge 1 commit intosiemens:masterfrom
happtim:master
Open

Fix: Change ConnectAsync return type to prevent unhandled exceptions …#492
happtim wants to merge 1 commit intosiemens:masterfrom
happtim:master

Conversation

@happtim
Copy link
Copy Markdown

@happtim happtim commented Oct 28, 2025

Changed ConnectAsync method return type from async void to async Task.
The combination of async void + Task.Run causes connection failure exceptions
to become unhandled exceptions that propagate to thread pool sync context
and terminate the process. Using async Task allows proper exception handling.

@happtim
Copy link
Copy Markdown
Author

happtim commented Oct 28, 2025

Can solve the same problem #490

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant