Attempt to disconnect on thread interrupt
This commit is contained in:
		| @@ -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; | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user