130131132133134135136137138
eventLoop.start(); try { latch.await(); } catch (InterruptedException e) { SkypeFramework.quitApplicationEventLoop(); throw new ConnectorException("The connector initialization was interrupted.", e); } } }
172173174175176177178179
SkypeFramework.addSkypeFrameworkListener(listener); SkypeFramework.connect(); latch.await(); return getStatus(); } catch(InterruptedException e) { throw new ConnectorException("Trying to connect was interrupted.", e); } }
119120121122123124125126
} else if ("ERROR 68".equals(result)) { setStatus(Status.REFUSED); } return getStatus(); } catch(InterruptedException e) { throw new ConnectorException("Trying to connect was interrupted.", e); } }
139140141142143144145146
retries--; Thread.sleep(1000); } } catch(InterruptedException e) { throw new ConnectorException("Trying to connect was interrupted.", e); } }