Revert "Check current thread ID to destroy handle" 59/287259/1
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 26 Jan 2023 03:39:02 +0000 (03:39 +0000)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 26 Jan 2023 03:39:23 +0000 (03:39 +0000)
commitd234a22cc5bc83726fb5d496ef81851a51c6adad
tree7a00f0a2efbbaaa860c96c83e0dc16b7dede34da
parente0f52c1cd5ca3e92b2249157f770bd6bb858dee3
Revert "Check current thread ID to destroy handle"

This reverts commit 2da1742b97e33d2b9c42d01104080721143d8b59.
When calling the event callback function, app developer releases the handle
in the callback function. It makes a crash issue.
Even if the destroy function is called in the main thread, the rpc-port library
doesn't release the handle immediately to prevent the issue.

Change-Id: I58a25d9e4c5f1f42065901dac8e6a30f22f898d2
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/rpc-port.cc