Ununderstandible issue with multithreading #102
stserakhau
started this conversation in
General
Replies: 1 comment 2 replies
-
It works with all events. Please make sure you create the data channel and register the observer prior to creating an offer or answer. Also run all the peer connection code in one the thread, e.g. your SYSTEM_EXECUTOR. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Strange behaviour of the code
when I put execution of this code inside of ThreadPoolExecutor
SYSTEM_EXECUTOR.execute(()->{
call CODE 1
})
Observer never executed onStateChange on OPEN event
CLOSE / CLOSING executed when second side executes CLOSE method on DataChannel.
workaround - replace OPEN event via sending message like 'OPEN' from second side and do initilization
CLOSE - the same via sending message or by timout
Beta Was this translation helpful? Give feedback.
All reactions