Commit bf3519a5 authored by Yusuke Iwaki's avatar Yusuke Iwaki

hotfix: fix issue that sendMessage error not notified properly.

parent 0e0d18a5
...@@ -130,6 +130,8 @@ public class DDPClientImpl { ...@@ -130,6 +130,8 @@ public class DDPClientImpl {
})); }));
addErrorCallback(subscriptions, task); addErrorCallback(subscriptions, task);
} else {
task.trySetError(new DDPClientCallback.Closed(client));
} }
} }
...@@ -170,6 +172,8 @@ public class DDPClientImpl { ...@@ -170,6 +172,8 @@ public class DDPClientImpl {
})); }));
addErrorCallback(subscriptions, task); addErrorCallback(subscriptions, task);
} else {
task.trySetError(new DDPClientCallback.Closed(client));
} }
} }
...@@ -198,6 +202,8 @@ public class DDPClientImpl { ...@@ -198,6 +202,8 @@ public class DDPClientImpl {
})); }));
addErrorCallback(subscriptions, task); addErrorCallback(subscriptions, task);
} else {
task.trySetError(new DDPClientCallback.Closed(client));
} }
} }
...@@ -237,6 +243,8 @@ public class DDPClientImpl { ...@@ -237,6 +243,8 @@ public class DDPClientImpl {
})); }));
addErrorCallback(subscriptions, task); addErrorCallback(subscriptions, task);
} else {
task.trySetError(new DDPClientCallback.Closed(client));
} }
} }
......
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