Skip to content

Improve RxJava Disposable Handling in V2RayServiceManager#3767

Merged
2dust merged 1 commit into2dust:masterfrom
codewithtamim:fix/improve-rxjava-disposable-handling
Oct 25, 2024
Merged

Improve RxJava Disposable Handling in V2RayServiceManager#3767
2dust merged 1 commit into2dust:masterfrom
codewithtamim:fix/improve-rxjava-disposable-handling

Conversation

@codewithtamim
Copy link
Copy Markdown
Contributor

Refactored the RxJava disposable handling in the V2RayServiceManager to ensure proper disposal when the service stops. This change prevents potential memory leaks by disposing of the disposable only when it's initialized, using a more concise and reliable approach with Kotlin's let function.

Refactored the RxJava disposable handling in the V2RayServiceManager to ensure proper disposal when the service stops. This change prevents potential memory leaks by disposing of the disposable only when it's initialized, using a more concise and reliable approach with Kotlin's let function.
@2dust 2dust merged commit 6f9bb6c into 2dust:master Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants