Profiles: Don't let one corrupt file kill the loader thread

Name the loader thread
Reported by Qubes
ref: http://zzz.i2p/topics/3469
This commit is contained in:
zzz
2022-11-25 08:30:41 -05:00
parent c2efb40b62
commit 84f8506912
2 changed files with 2 additions and 2 deletions

View File

@ -199,7 +199,7 @@ class PeerManager {
* @since 0.8.8
*/
private void loadProfilesInBackground() {
(new I2PThread(new ProfileLoader())).start();
(new I2PThread(new ProfileLoader(), "Peer Profile Loader")).start();
}
/**

View File

@ -360,7 +360,7 @@ class ProfilePersistenceHelper {
fixupFirstHeardAbout(profile);
return profile;
} catch (IOException e) {
} catch (Exception e) {
if (_log.shouldLog(Log.WARN))
_log.warn("Error loading properties from " + file.getAbsolutePath(), e);
file.delete();