afb-stub-ws: fix bug in reconnection
[src/app-framework-binder.git] / src / afb-stub-ws.c
index 7e9ab7a..cab58d2 100644 (file)
@@ -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;
 }