Server Start-Stop "restart" exception
tothalexlaszlo opened this issue · comments
Scenario:
- Start server
- Stop server
- Start server
- 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?
Yes please, send the fix.