353073 Improved client API to use futures

This commit is contained in:
Greg Wilkins 2011-08-11 11:52:33 +10:00
parent 6b9ecd0806
commit 72caa15632
1 changed files with 7 additions and 0 deletions

View File

@ -176,6 +176,13 @@ public class WebSocketClient extends AggregateLifeCycle
Thread.sleep(200); // TODO configure?
_connectQ.tick(System.currentTimeMillis());
}
catch(InterruptedException e)
{
if (isRunning())
__log.warn(e);
else
__log.ignore(e);
}
catch(Exception e)
{
__log.warn(e);