Skip to content

Commit

Permalink
Add/improve a couple of log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
paddybyers committed Jul 25, 2018
1 parent e89f420 commit 9800136
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/src/main/java/io/ably/lib/realtime/Channel.java
Original file line number Diff line number Diff line change
Expand Up @@ -954,6 +954,7 @@ void onChannelMessage(ProtocolMessage msg) {
attachWithTimeout(null);
} catch (AblyException e) {
/* Send message error */
Log.e(TAG, "Attempting reattach threw exception", e);
setDetached(e.errorInfo);
}
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1408,10 +1408,11 @@ public void channel_reattach_failed_timeout() {

} catch(AblyException e) {
e.printStackTrace();
fail("Unexpected exception");
fail("channel_reattach_failed_timeout: unexpected exception");
} finally {
if (ably != null)
if (ably != null) {
ably.close();
}
/* Restore default values to run other tests */
Defaults.TRANSPORT = oldTransportFractory;
Defaults.realtimeRequestTimeout = oldRealtimeTimeout;
Expand Down

0 comments on commit 9800136

Please sign in to comment.