🎨 Catch and log exceptions in identity manager thread
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / freenet / wot / IdentityManagerImpl.kt
index 1e83cd7..cb7d0bd 100644 (file)
@@ -69,6 +69,8 @@ class IdentityManagerImpl @Inject constructor(
                                }
                        } catch (wote1: WebOfTrustException) {
                                logger.log(Level.WARNING, "WoT has disappeared!", wote1)
+                       } catch (e: Exception) {
+                               logger.log(Level.SEVERE, "Uncaught exception in IdentityManager thread!", e)
                        }
 
                        /* wait a minute before checking again. */