Skip to content

Commit b04e48e

Browse files
committed
Fix for invokemethod
1 parent c65cf86 commit b04e48e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

up_client_socket/cpp/src/SocketUTransport.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,12 @@ struct SocketUTransport::Impl {
167167
__LINE__, umsg.DebugString());
168168

169169
auto& attributes = umsg.attributes();
170-
auto key = makeKey(attributes.source());
170+
auto key = makeKey(attributes.sink(), attributes.source());
171171
auto ptr = callback_data_.find(key);
172+
if (ptr == nullptr) {
173+
key = makeKey(attributes.sink());
174+
ptr = callback_data_.find(key);
175+
}
172176
if (ptr != nullptr) {
173177
unique_lock<mutex> lock(ptr->mtx);
174178
for (auto callback : ptr->listeners) {

0 commit comments

Comments
 (0)