icerockdev / moko-network

Network components with codegeneration of rest api for mobile (android & ios) Kotlin Multiplatform development
https://moko.icerock.dev
Apache License 2.0
151 stars 29 forks source link

RefreshTokenHttpFeature: Permanent lock of the mutex #119

Closed vevar closed 1 year ago

vevar commented 3 years ago

https://github.com/icerockdev/moko-network/blob/92d75bcaf501287c214eaa8c587bc5c55e500ea6/network/src/commonMain/kotlin/dev/icerock/moko/network/features/RefreshTokenFeature.kt#L63 or https://github.com/icerockdev/moko-network/blob/master/network/src/commonMain/kotlin/dev/icerock/moko/network/features/RefreshTokenFeature.kt#L53 if method throw some exception, then the refreshTokenHttpFeatureMutex will be locked permanently.