Author: toad
Date: 2009-01-03 14:52:28 +0000 (Sat, 03 Jan 2009)
New Revision: 24899
Modified:
trunk/plugins/JSTUN/JSTUN.java
Log:
Fix hanging on shutdown: If shutdown hook has been triggered, don't finish the
detection.
Modified: trunk/plugins/JSTUN/JSTUN.java
===================================================================
--- trunk/plugins/JSTUN/JSTUN.java 2009-01-03 13:44:03 UTC (rev 24898)
+++ trunk/plugins/JSTUN/JSTUN.java 2009-01-03 14:52:28 UTC (rev 24899)
@@ -55,6 +55,7 @@
for(int i=0;i<publicSTUNServers.length;i++)
v.add(publicSTUNServers[i]);
while(!v.isEmpty()) {
+ if(WrapperManager.hasShutdownHookBeenTriggered())
return null;
String stunServer = (String)
v.remove(r.nextInt(v.size()));
try {
DiscoveryTest test = new
DiscoveryTest(iaddress, stunServer, 3478);
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs