Skip to content

Commit

Permalink
revert complete with empty on error
Browse files Browse the repository at this point in the history
  • Loading branch information
vanderian committed Nov 29, 2018
1 parent a746872 commit e44184f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/src/main/java/ch/decent/sdk/net/ws/RxWebSocket.kt
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ internal class RxWebSocket(
private fun connect() {
disposable.addAll(
events.log("RxWebSocket")
.doOnTerminate {
.onErrorResumeNext(Flowable.empty())
.doOnComplete {
webSocketAsync = null
disposable.clear()
apiId.clear()
Expand Down

0 comments on commit e44184f

Please sign in to comment.