Skip to content

Commit 2d420dd

Browse files
committed
fixed bug in handleRouteConnect
1 parent ff41f40 commit 2d420dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/common/ipc/server_router.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ class ServerRouterImpl final : public ServerRouter
300300
//
301301
handleRouteChannelMsg(msg.client_id, route_ch_msg, msg_payload);
302302
},
303-
[this, &msg, msg_payload](const RouteChannelEnd_1_0& route_ch_end) {
303+
[this, &msg](const RouteChannelEnd_1_0& route_ch_end) {
304304
//
305305
handleRouteChannelEnd(msg.client_id, route_ch_end);
306306
}),
@@ -340,7 +340,7 @@ class ServerRouterImpl final : public ServerRouter
340340
//
341341
return server_pipe_->send(client_id, {{payload}});
342342
});
343-
if (0 != error)
343+
if (0 == error)
344344
{
345345
connected_client_ids_.insert(client_id);
346346
}

0 commit comments

Comments
 (0)