Skip to content

Commit

Permalink
fix: Fix the reentrancy of methods from callback (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
sramani-metro authored Jul 11, 2023
1 parent e44476c commit 0def424
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions languages/c/templates/sdk/src/Transport/Transport.h
Original file line number Diff line number Diff line change
Expand Up @@ -668,15 +668,15 @@ namespace FireboltSDK {
}

result = WPEFramework::Core::ERROR_NONE;
_adminLock.Unlock();
} else {

_adminLock.Unlock();
string eventName;
if (IsEvent(inbound->Id.Value(), eventName)) {
_eventHandler->Dispatch(eventName, inbound);
}

}
_adminLock.Unlock();
}

return (result);
Expand Down

0 comments on commit 0def424

Please sign in to comment.