https://kotlinlang.org logo
#ktor
Title
p

Peter Ertl

12/28/2020, 3:03 PM
it seems that an event handler using
Copy code
environment.monitor.subscribe(ApplicationStopping) { ... }
stays subscribed even after auto reload in development mode. how can I properly unsubscribe my listener on auto reload? additional question: shouldn’t these kind of handlers automatically be unsubscribed on auto reload?