Commit 929b8c94 authored by Mygod's avatar Mygod

Ignore exceptions while unbinding service

parent 197819e7
......@@ -69,7 +69,9 @@ trait ServiceBoundContext extends Context with IBinder.DeathRecipient {
unregisterCallback
callback = null
if (connection != null) {
unbindService(connection)
try unbindService(connection) catch {
case _: IllegalArgumentException => // ignore
}
connection = null
}
if (binder != null) {
......
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