Th3JD / RWTH-LeckerSchmecker

GNU Affero General Public License v3.0
6 stars 0 forks source link

Introducing the ShutdownHook results in the bot not terminating #15

Closed Th3JD closed 1 year ago

Th3JD commented 1 year ago

In 6ff65b1 a shutdownhook was introduced in order to intercept kill-Signals and clean up data like database connections. However, with this code active, the program does not terminate at all.

ekansemit commented 1 year ago

It seems that the logger cannot be used in the shutdown hook. Used instead System.out.println. Debugging shows, that the database connections are being closed. Please re-open if this does not fix the bug.