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

android mars-wrapper MarsServiceProxy.cancel无效 #179

Closed
mricefox opened this issue Mar 15, 2017 · 1 comment
Closed

android mars-wrapper MarsServiceProxy.cancel无效 #179

mricefox opened this issue Mar 15, 2017 · 1 comment
Assignees
Labels

Comments

@mricefox
Copy link

MarsServiceProxy.cancel(MarsTaskWrapper marsTaskWrapper)这个api是无效的

MarsServiceProxy通过维护一个WRAPPER_TO_TASK_ID来对应上层MarsTaskWrappertaskId,但是app进程传递过来的MarsTaskWrapper经过aidl之后,每次都是不同实例,因此在mars这个进程已经无法和taskId对应了。

例如在app进程中使用MarsTaskWrapper的实例A发送,在mars进程变成实例B,与taskId=1对应;但是当取消这个请求时,app进程再次传递A过来,在mars进程变成实例C,无法找到相应taskId,也就无法使用StnLogic.stopTask(taskID)来停止

@garryyan garryyan added the bug label Mar 16, 2017
@kirozhao kirozhao self-assigned this Mar 16, 2017
@kirozhao
Copy link
Collaborator

fixed in dev branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants