Skip to content

MicroWebSrv.Start never terminates when threaded=False and Stop() is called #75

@serious-scribbler

Description

@serious-scribbler

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().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions