Closed ovalseven8 closed 5 years ago
The original plan of @dbrgn was to make it thread-safe but, after a brief discussion a while ago, we concluded that it isn't thread-safe.
My personal opinion is also that there's no benefit in making it thread-safe.
Thanks for the clarification.
However, it would probably make sense to document that code from saltyrtc-client-java
has to be called from one and the same thread only.
I get null pointer exceptions when I connect/disconnect simultaneously:
It's this code: https://github.com/saltyrtc/saltyrtc-client-java/blob/87fd191daae0f2ff727de497f218609d90facda4/src/main/java/org/saltyrtc/client/signaling/Signaling.java#L330
Following test: