Mark connection as closed after a ApiConnectionException in the reader thread
This commit is contained in:
parent
fcaec18675
commit
4c2f69a609
|
|
@ -216,8 +216,9 @@ public final class ApiConnectionImpl extends ApiConnection {
|
||||||
put(ex);
|
put(ex);
|
||||||
} catch (ApiConnectionException ex) {
|
} catch (ApiConnectionException ex) {
|
||||||
if (connected || !sock.isClosed()) {
|
if (connected || !sock.isClosed()) {
|
||||||
put(ex);
|
connected = false;
|
||||||
}
|
}
|
||||||
|
put(ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue