Fixed bug #13 - Processor thread not stopped on disconnect

This commit is contained in:
Gideon le Grange 2014-11-17 22:35:48 +02:00
parent 882503b602
commit 746e37f6cd
1 changed files with 1 additions and 0 deletions

View File

@ -66,6 +66,7 @@ public final class ApiConnectionImpl extends ApiConnection {
throw new ApiConnectionException(("Not/no longer connected to remote Mikrotik"));
}
connected = false;
processor.interrupt();
reader.interrupt();
try {
sock.close();