Attempt to disconnect on thread interrupt

This commit is contained in:
2015-10-29 12:34:29 +01:00
parent 9c2d8589bf
commit c9c0806e0d
3 changed files with 8 additions and 1 deletions

View File

@ -130,6 +130,9 @@ public class Connection {
@SuppressWarnings("RedundantIfStatement")
private boolean syncFinished(NetworkMessage msg) {
if (Thread.interrupted()) {
return true;
}
if (syncTimeout == 0 || state != ACTIVE) {
return false;
}