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:08:47 +0100 |
commit | 7901c6dadaceb37638ab98876e759c4d6f3ea130 (patch) | |
tree | 1664cdf270cfc9f05554b2a081f711fa597b292c | |
parent | 9cab553d6ce4e352ba8eb656b0058c7d5336ca73 (diff) |
afb-stub-ws: fix bug in reconnection
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; } |