1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2025-09-10 18:59:41 +02:00

Improve logging of finalize() methods

This commit is contained in:
Florian Schmaus 2014-12-19 12:54:07 +01:00
parent 18ac83cf8c
commit efb9a5f517
2 changed files with 7 additions and 1 deletions

View file

@ -1057,6 +1057,8 @@ public abstract class AbstractXMPPConnection implements XMPPConnection {
@Override
protected void finalize() throws Throwable {
LOGGER.fine("finalizing XMPPConnection ( " + getConnectionCounter()
+ "): Shutting down executor services");
try {
// It's usually not a good idea to rely on finalize. But this is the easiest way to
// avoid the "Smack Listener Processor" leaking. The thread(s) of the executor have a