When quitting, it is possible for *the-main-thread* to be a stale thread object and as a consequence for join-thread to signal an error. This patch makes sure to catch it and reset the *main-thread-channel*, which is also stale, to nil so that it can be re-created when needed.
When quitting, it is possible for
*the-main-thread*
to be a stale thread object and as a consequence forjoin-thread
to signal an error. This patch makes sure to catch it and reset the*main-thread-channel*
, which is also stale, tonil
so that it can be re-created when needed.