Currently, when there is a panic in any of our spawned tokio tasks, the application will continue to run. Only the specific task from where the panic originated will be aborted.
I believe that we should change this behaviour to abort the main runtime on any panic. Whether it is from the main runtime or from a spawned task.
The problem with the current behaviour is mainly that the app will continue to run even if one or multiple servers (HttpTracker, Api, UdpTracker) yield a panic when trying to start them.
Relevant discussion
Currently, when there is a panic in any of our spawned tokio tasks, the application will continue to run. Only the specific task from where the panic originated will be aborted.
I believe that we should change this behaviour to abort the main runtime on any panic. Whether it is from the main runtime or from a spawned task.
The problem with the current behaviour is mainly that the app will continue to run even if one or multiple servers (HttpTracker, Api, UdpTracker) yield a panic when trying to start them.
Relevant discussion