Skip to content

Commit d75fa30

Browse files
Hossam HindawyHossam Hindawy
authored andcommitted
Add @synchronized to setupRxJavaErrorHandler
1 parent a9cf10f commit d75fa30

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

library/src/main/java/io/constructor/core/ConstructorIo.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ object ConstructorIo {
143143
* These exceptions can occur when network errors happen after the RxJava stream has
144144
* already completed or been disposed, particularly with OkHttp async operations.
145145
*/
146+
@Synchronized
146147
internal fun setupRxJavaErrorHandler() {
147148
if (RxJavaPlugins.getErrorHandler() != null) return
148149
RxJavaPlugins.setErrorHandler { throwable ->

0 commit comments

Comments
 (0)