Describe the bug
0.1.5 Currently has a bug where it can take up to 5mins to fully terminate on SIGINT. This is because of the motd_updater's main loop. 0.1.4 Never terminates on SIGINT with motd_updater enabled.
To Reproduce
Steps to reproduce the behavior:
Start KF2 Magicked Admin with motd_updater enabled
Press ctrl+c
The program does not terminate properly
Expected behavior
KF2 Magicked Admin should take a split second to write the database before closing when receiving SIGINT.
Solution
motd_updater needs to regularly check for the __exit flag, not once per update. Add timer for motd updates, sleep thread for 1s per iteration.
Desktop (please complete the following information):
OS: KDE Neon
KF2-MA version: 0.1.5 eccaae7
Server (please complete the following information):
Describe the bug 0.1.5 Currently has a bug where it can take up to 5mins to fully terminate on SIGINT. This is because of the motd_updater's main loop. 0.1.4 Never terminates on SIGINT with motd_updater enabled.
To Reproduce Steps to reproduce the behavior:
Expected behavior KF2 Magicked Admin should take a split second to write the database before closing when receiving SIGINT.
Solution motd_updater needs to regularly check for the __exit flag, not once per update. Add timer for motd updates, sleep thread for 1s per iteration.
Desktop (please complete the following information):
Server (please complete the following information):