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

Server Start-Stop "restart" exception #147

Open
tothalexlaszlo opened this issue Mar 17, 2022 · 1 comment
Open

Server Start-Stop "restart" exception #147

tothalexlaszlo opened this issue Mar 17, 2022 · 1 comment

Comments

@tothalexlaszlo
Copy link

Scenario:

  1. Start server
  2. Stop server
  3. Start server
  4. Stop server <- at this point a TimerAwaitable is already disposed in the server component
    If we remove readonly keyword from _timerAwaitable and move its initialization from ctor to StartAsync() we could start-stop the server as many times as we want without throwing any exception.

Shall I PR it or it is intentionally done?

@tothalexlaszlo tothalexlaszlo changed the title Server Start-Stop "restart" Server Start-Stop "restart" exception Mar 17, 2022
@davidfowl
Copy link
Owner

Yes please, send the fix.

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

No branches or pull requests

2 participants