forked from I2P_Developers/i2p.i2p
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:
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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();
|
||||
|
Reference in New Issue
Block a user