diff options
author | José Bollo <jose.bollo@iot.bzh> | 2020-03-12 16:16:35 +0100 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2020-03-12 17:11:04 +0100 |
commit | b15edc1c48d74f2ad6e9ade577bf6b4945d85eee (patch) | |
tree | 799efad82a9633384df1a980b87253f4d7ce7abb | |
parent | 591f9d339d6467e4b53be561aedda90630a9ddbf (diff) |
afb-stub-ws: fix bug in reconnectionicefish_9.0.1icefish/9.0.19.0.1
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afb-stub-ws.c b/src/afb-stub-ws.c index 7e9ab7a3..cab58d20 100644 --- a/src/afb-stub-ws.c +++ b/src/afb-stub-ws.c @@ -204,7 +204,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; } |