sdl_java_suite icon indicating copy to clipboard operation
sdl_java_suite copied to clipboard

SdlTransport.handleTransportError() is not thread safe

Open chenbd opened this issue 8 years ago • 0 comments

SdlTransport.handleTransportError() may be called from different thread. in handleTransportError(), _transportListener.onTransportError() will be called which cause _transportListener need consider synchronized and may cause some issues.

guess _transportListener's call back should be called in dedicated thread.

https://github.com/smartdevicelink/sdl_android/blob/develop/sdl_android_lib/src/com/smartdevicelink/transport/SdlTransport.java#L103-L107

chenbd avatar Feb 16 '17 13:02 chenbd