From b15edc1c48d74f2ad6e9ade577bf6b4945d85eee Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Bollo?= Date: Thu, 12 Mar 2020 16:16:35 +0100 Subject: [PATCH] afb-stub-ws: fix bug in reconnection MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Change-Id: I1baac1b65014e840acb6ecedb501fc14abc17ed6 --- src/afb-stub-ws.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.16.6