Mark connection as closed after a ApiConnectionException in the reader thread

This commit is contained in:
Gideon le Grange 2018-08-02 11:18:31 +02:00
parent fcaec18675
commit 4c2f69a609
1 changed files with 2 additions and 1 deletions

View File

@ -216,8 +216,9 @@ public final class ApiConnectionImpl extends ApiConnection {
put(ex);
} catch (ApiConnectionException ex) {
if (connected || !sock.isClosed()) {
put(ex);
connected = false;
}
put(ex);
}
}
}