Fixed bug #13 - Processor thread not stopped on disconnect
This commit is contained in:
parent
882503b602
commit
746e37f6cd
|
|
@ -66,6 +66,7 @@ public final class ApiConnectionImpl extends ApiConnection {
|
||||||
throw new ApiConnectionException(("Not/no longer connected to remote Mikrotik"));
|
throw new ApiConnectionException(("Not/no longer connected to remote Mikrotik"));
|
||||||
}
|
}
|
||||||
connected = false;
|
connected = false;
|
||||||
|
processor.interrupt();
|
||||||
reader.interrupt();
|
reader.interrupt();
|
||||||
try {
|
try {
|
||||||
sock.close();
|
sock.close();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue