At least since Python 2.7, server_close() won't stop the HTTP server, leading to an infinite hanging WebIOPi on stop, with 100% CPU usage. Only SIGKILL is able to kill it in this state. shutdown() needs to be used to stop a serve_forever() HTTP server.
Additionally trailing spaces, spaces from empty lines and doubled newlines have been removed from the script.
At least since Python 2.7, server_close() won't stop the HTTP server, leading to an infinite hanging WebIOPi on stop, with 100% CPU usage. Only SIGKILL is able to kill it in this state. shutdown() needs to be used to stop a serve_forever() HTTP server.
Additionally trailing spaces, spaces from empty lines and doubled newlines have been removed from the script.
Solves: #48 #52 #53