Author: michiel
Date: 2009-05-13 22:56:48 +0200 (Wed, 13 May 2009)
New Revision: 35147
Modified:
mmbase/trunk/src/org/mmbase/bridge/implementation/BasicCloudContext.java
Log:
Should not ignore interrupts, stop also waiting if mmbase is shut down
Modified:
mmbase/trunk/src/org/mmbase/bridge/implementation/BasicCloudContext.java
===================================================================
--- mmbase/trunk/src/org/mmbase/bridge/implementation/BasicCloudContext.java
2009-05-13 20:41:04 UTC (rev 35146)
+++ mmbase/trunk/src/org/mmbase/bridge/implementation/BasicCloudContext.java
2009-05-13 20:56:48 UTC (rev 35147)
@@ -240,12 +240,14 @@
// TODO implement with some nice notify-mechanism.
CloudContext ctx = LocalContext.getCloudContext();
while (!MMBaseContext.isInitialized() || ! isUp()) {
+
+ if (mmb != null && mmb.isShutdown()) break;
try {
check();
Thread.sleep(10000);
log.debug("Sleeping another 10 secs");
- } catch (Exception e) {
- // I hate java.
+ } catch (InterruptedException e) {
+ return this;
}
}
return this;
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs