aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2020-03-12 16:16:35 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2020-03-12 17:12:42 +0100
commit6623cb55f38d525407f35642d945a9b1c028deae (patch)
treef64d13d67b81a22ef8aae9e8930193dc8864d9e3
parentaeb015becc84a457afd5a5fb82e26dfca0978c83 (diff)
afb-stub-ws: fix bug in reconnectionhalibut
When the client reconnected, it used the wrong type and reconnected as server leading to unexpected continuations. Bug-AGL: SPEC-3272 Signed-off-by: José Bollo <jose.bollo@iot.bzh> Change-Id: I1baac1b65014e840acb6ecedb501fc14abc17ed6
-rw-r--r--src/afb-stub-ws.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afb-stub-ws.c b/src/afb-stub-ws.c
index 6a52f6fc..69eb3f23 100644
--- a/src/afb-stub-ws.c
+++ b/src/afb-stub-ws.c
@@ -248,7 +248,7 @@ static struct afb_proto_ws *client_get_proto(struct afb_stub_ws *stubws)
if (proto == NULL && stubws->robust.reopen) {
fdev = stubws->robust.reopen(stubws->robust.closure);
if (fdev != NULL)
- proto = afb_stub_ws_create_proto(stubws, fdev, 0);
+ proto = afb_stub_ws_create_proto(stubws, fdev, 1);
}
return proto;
}