Skip to content

Commit 596144f

Browse files
committed
ConnectionManager.closeImpl(): add clarifying comment
1 parent 8da742a commit 596144f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

lib/src/main/java/io/ably/lib/transport/ConnectionManager.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1329,7 +1329,11 @@ private boolean closeImpl() {
13291329
Log.v(TAG, "Requesting connection close");
13301330
transport.send(new ProtocolMessage(ProtocolMessage.Action.close));
13311331
return false;
1332-
} catch (AblyException e) {}
1332+
} catch (AblyException e) {
1333+
/* we're closing, and the attempt to send the CLOSE message failed;
1334+
* continue, because we're not going to reinstate the transport
1335+
* just to send a CLOSE message */
1336+
}
13331337
}
13341338

13351339
/* just close the transport */

0 commit comments

Comments
 (0)