Skip to content

Commit e23f32e

Browse files
committed
Update winrt websocket client to set event on the copy instead of original.
1 parent e84e0e2 commit e23f32e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Release/src/websockets/client/ws_client_winrt.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class winrt_callback_client : public websocket_client_callback_impl, public std:
139139
// that the set method accesses internal state in the event and the websocket
140140
// client could be destroyed.
141141
auto local_close_tce = m_close_tce;
142-
m_close_tce.set();
142+
local_close_tce.set();
143143
});
144144
}
145145

@@ -149,7 +149,7 @@ class winrt_callback_client : public websocket_client_callback_impl, public std:
149149
// that the set method accesses internal state in the event and the websocket
150150
// client could be destroyed.
151151
auto local_close_tce = m_close_tce;
152-
m_close_tce.set();
152+
local_close_tce.set();
153153
}
154154

155155
pplx::task<void> connect()

0 commit comments

Comments
 (0)