You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When Stop is called from a route handler in un-threaded mode, Start() never terminates. An important thing to note is that I'm running the module on ESP8266 (precompiled using the cross compiler) and removed the import of _thread and replaced the content of _startThread() with return True, since it isn't needed and was using _thread.
I fixed this in my own copy by changing the following line of _serverProcess() from while True: to while self._started:
and adding self._started = False to Stop().
The text was updated successfully, but these errors were encountered:
serious-scribbler
changed the title
MicroWebSrv.Start never terminates when theaded=False and Stop() is called
MicroWebSrv.Start never terminates when threaded=False and Stop() is called
Jun 30, 2021
When Stop is called from a route handler in un-threaded mode, Start() never terminates. An important thing to note is that I'm running the module on ESP8266 (precompiled using the cross compiler) and removed the import of _thread and replaced the content of _startThread() with
return True
, since it isn't needed and was using _thread.I fixed this in my own copy by changing the following line of
_serverProcess()
fromwhile True:
towhile self._started:
and adding
self._started = False
to Stop().The text was updated successfully, but these errors were encountered: