Thread.currentThread().interrupt();
return;
} catch (ExecutionException e) {
Throwable cause = e.getCause();
if (cause instanceof SarosCancellationException) {
SarosCancellationException cancellation = (SarosCancellationException) cause;
throw cancellation;
} else {
log.error("Unexpected Exception: ", cause);
}
return;
} catch (IOException e) {
if (streamSession != null)
streamSession.dispose();
} catch (ConnectionException e) {
throw new SarosCancellationException("Could not connect.");
} catch (TimeoutException e) {
throw new SarosCancellationException("Request timed out.");
}
} catch (InitializationException e) {
log.error("Could not setup videosharing-session: ", e);
}
} finally {