If a looping thread does terminate due to a runtime exception, log it on the
way out rather than letting it propagate up to the JVM where it'll get written to stderr which isn't always useful. git-svn-id: https://samskivert.googlecode.com/svn/trunk@2475 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -80,6 +80,9 @@ public class LoopingThread extends Thread
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} catch (Throwable t) {
|
||||||
|
log.warning("Looping thread terminated with exception.", "thread", this, t);
|
||||||
|
|
||||||
} finally {
|
} finally {
|
||||||
// Running needs to be false even if this exited due to a Throwable from iterate
|
// Running needs to be false even if this exited due to a Throwable from iterate
|
||||||
_running = false;
|
_running = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user