-
The file IO is blocking, so we don't want that in our thread loops.
-
Found by quinox using AFL.
-
It also contains some related improvements that I needed: * Show disconnect reason * Fix the while condition for doing write() to avoid an unnecessary call * Config reloading logic
-
Also reloading of settings, which re-opens the log file.
-
It can be defined in the config file, along with options.
-
I put the main app in a seperate class for it, because it was easier.
-
Roughly...
-
And I had to fix a threading bug.