Check if handle is destroying before posting idle-callbacks 29/284029/1 accepted/tizen/7.0/unified/20221115.022315
authorSangchul Lee <sc11.lee@samsung.com>
Tue, 25 Oct 2022 06:12:00 +0000 (15:12 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Wed, 9 Nov 2022 02:49:45 +0000 (02:49 +0000)
commit3bc0d1755ed6b047538468d25e95d73c95f0e8f5
tree04aae939cae5362c3bf72978942c7e0bbf7f15cc
parent05f03459f9fb3c4900df48ffa67286193720e62f
Check if handle is destroying before posting idle-callbacks

Sometimes, deadlock happens in C# TCT because of a sequence below.
 - webrtc handle seems to be destroyed before negotiation
  callbacks have not been processed in the main thread posted
  by g_idle_add_full().

It is checked that state and error callbacks have no chance
to get this situation.

[Version] 0.3.263
[Issue Type] Improvement

Change-Id: Ia7359bb45aaa1095dd77ee673c5b3b72056da62b
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
include/webrtc_private.h
packaging/capi-media-webrtc.spec
src/webrtc.c
src/webrtc_private.c