From: José Bollo Date: Thu, 12 Mar 2020 15:16:35 +0000 (+0100) Subject: afb-stub-ws: fix bug in reconnection X-Git-Tag: 9.99.1~1 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fapp-framework-binder.git;a=commitdiff_plain;h=7901c6dadaceb37638ab98876e759c4d6f3ea130 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 Change-Id: I1baac1b65014e840acb6ecedb501fc14abc17ed6 --- 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; }