Skip to content

Commit 6111722

Browse files
authored
fix: the receiver of channel will hang after disconnect
1 parent 2a2b626 commit 6111722

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libipc/ipc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ static ipc::buff_t recv(ipc::handle_t h, std::uint64_t tm) {
533533
auto& rc = info_of(h)->recv_cache();
534534
for (;;) {
535535
// pop a new message
536-
typename queue_t::value_t msg;
536+
typename queue_t::value_t msg {};
537537
if (!wait_for(info_of(h)->rd_waiter_, [que, &msg] {
538538
return !que->pop(msg);
539539
}, tm)) {

0 commit comments

Comments
 (0)