Commit 86b727d8 authored by Leonardo Aramaki's avatar Leonardo Aramaki

The ddp client was silently ignoring error callbacks. Throwing up an error in...

The ddp client was silently ignoring error callbacks. Throwing up an error in case at least a closed websocket issue arises
parent e541db81
......@@ -387,6 +387,9 @@ public class DDPClientImpl {
disposables.add(
flowable.subscribe(
base -> {
if (base instanceof RxWebSocketCallback.Close) {
task.trySetError(new Exception(((RxWebSocketCallback.Close) base).reason));
}
},
err -> {
task.trySetError(new Exception(err));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment