diff options
author | Adam Domurad <[email protected]> | 2013-02-06 09:18:38 -0500 |
---|---|---|
committer | Adam Domurad <[email protected]> | 2013-02-06 09:18:38 -0500 |
commit | eea851ed0fe295f69a001313d7f420b6b802e364 (patch) | |
tree | e1bb217865715bf2f462dd4de5d6b027827f6da8 /netx/net/sourceforge | |
parent | 7483cfd857fec86583479dea96c2b989608a4ef2 (diff) |
Provide names for unnamed threads for better debugging
Diffstat (limited to 'netx/net/sourceforge')
-rw-r--r-- | netx/net/sourceforge/jnlp/NetxPanel.java | 2 | ||||
-rw-r--r-- | netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/netx/net/sourceforge/jnlp/NetxPanel.java b/netx/net/sourceforge/jnlp/NetxPanel.java index dfa7262..8a51566 100644 --- a/netx/net/sourceforge/jnlp/NetxPanel.java +++ b/netx/net/sourceforge/jnlp/NetxPanel.java @@ -181,7 +181,7 @@ public class NetxPanel extends AppletViewerPanel implements SplashController { } } - handler = new Thread(getThreadGroup(), this); + handler = new Thread(getThreadGroup(), this, "NetxPanelThread@" + this.documentURL); handler.start(); } diff --git a/netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java b/netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java index fedf918..add5035 100644 --- a/netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java +++ b/netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java @@ -738,7 +738,7 @@ public class JNLPRuntime { e.printStackTrace(); } - Runtime.getRuntime().addShutdownHook(new Thread() { + Runtime.getRuntime().addShutdownHook(new Thread("JNLPRuntimeShutdownHookThread") { public void run() { markNetxStopped(); CacheUtil.cleanCache(); |