Commit 98d05a08 authored by Andrei Pascovici's avatar Andrei Pascovici Committed by Commit Bot

Fix crash upon stopping Cast

Bug: internal b/112284077
Change-Id: I9b30669d0864f5f72369ae76e353200609108e5f
Reviewed-on: https://chromium-review.googlesource.com/1167970Reviewed-by: default avatarSimeon Anfinrud <sanfin@chromium.org>
Commit-Queue: Andrei Pascovici <apascovici@chromium.org>
Cr-Commit-Position: refs/heads/master@{#582999}
parent 95ce2318
......@@ -65,10 +65,10 @@ public class CastWebContentsService extends Service {
}
@Override
public void onDestroy() {
if (DEBUG) Log.d(TAG, "onDestroy");
public boolean onUnbind(Intent intent) {
if (DEBUG) Log.d(TAG, "onUnbind");
mWebContentsState.reset();
super.onDestroy();
return super.onUnbind(intent);
}
@Override
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment