Skip to content

Fix "Fatal error: leaking promise" on exit

Compare
Choose a tag to compare
@m-barthelemy m-barthelemy released this 26 Aug 00:39
· 31 commits to master since this release
2b4ef53

Previously, when the application was shutting down, the following kind of errors could appear:

ERROR: Cannot schedule tasks on an EventLoop that has already shut down. This will be upgraded to a forced crash in future SwiftNIO versions.
ERROR: Cannot schedule tasks on an EventLoop that has already shut down. This will be upgraded to a forced crash in future SwiftNIO versions.
ERROR: Cannot schedule tasks on an EventLoop that has already shut down. This will be upgraded to a forced crash in future SwiftNIO versions.
ERROR: Cannot schedule tasks on an EventLoop that has already shut down. This will be upgraded to a forced crash in future SwiftNIO versions.
Fatal error: leaking promise created at [...]

Fix from #11