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

Activity 或则 Fragment 销毁时http请求并没有取消 #27

Open
itwang opened this issue Sep 20, 2016 · 2 comments
Open

Activity 或则 Fragment 销毁时http请求并没有取消 #27

itwang opened this issue Sep 20, 2016 · 2 comments

Comments

@itwang
Copy link

itwang commented Sep 20, 2016

image
按照wiki里面的配置后,当服务器请求满而退出当前页面时,http请求任在后台执行,并没有销毁,导致最后程序报错
本地配置如下:
1、Activity
image
image
2、Fragment
image
image

@daimaXZ
Copy link

daimaXZ commented Oct 13, 2016

判断是请求取消了还是返回response没取消,应该是请求取消了,但是activity销毁后还是会response导致的空指针。

@longertime
Copy link

无法取消请求啊,两种方法都试过了

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

3 participants