Merge pull request #284 from gatesking/patch-1

Catch interrupt signal in keepalive thread
This commit is contained in:
Jeroen van Erp
2016-11-30 09:42:29 +01:00
committed by GitHub

View File

@@ -65,6 +65,8 @@ public abstract class KeepAlive extends Thread {
}
Thread.sleep(hi * 1000);
}
} catch (InterruptedException e) {
// Interrupt signal may be catched when sleeping.
} catch (Exception e) {
// If we weren't interrupted, kill the transport, then this exception was unexpected.
// Else we're in shutdown-mode already, so don't forcibly kill the transport.