Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

未register的时候,调用unregister会抛异常 #51

Closed
ArtisanM opened this issue Apr 7, 2017 · 1 comment
Closed

未register的时候,调用unregister会抛异常 #51

ArtisanM opened this issue Apr 7, 2017 · 1 comment

Comments

@ArtisanM
Copy link

ArtisanM commented Apr 7, 2017

为啥得抛异常?我有时候为了性能考虑,在activity创建时判断一些必要条件,如果不满足就直接finish,这种情况下是不会register Rxbus的,但是我在onDestory时统一unregister,然后Rxbus就抛异常了。

难道这种情况我还得记个flag?总感觉在这种情况下直接抛异常的设计很不好。我也不可能try catch,这样是有性能开销的

@hwangjr
Copy link
Member

hwangjr commented Sep 29, 2017

feel free to reopen the issue if you still have problems.

@hwangjr hwangjr closed this as completed Sep 29, 2017
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

No branches or pull requests

2 participants