Skip to content

Commit c921caa

Browse files
プラグインのサービスのunbindするタイミングの調整
## 更新内容 * プラグインのサービスのunbindするタイミングの調整
1 parent 7eb69df commit c921caa

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • dConnectManager/dConnectManager/dconnect-manager-core/src/main/java/org/deviceconnect/android/manager/core/plugin

dConnectManager/dConnectManager/dconnect-manager-core/src/main/java/org/deviceconnect/android/manager/core/plugin/BinderConnection.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,11 @@ public synchronized void connect() throws ConnectingException {
9696
public void disconnect() {
9797
synchronized (this) {
9898
if (ConnectionState.CONNECTED == getState()) {
99-
mContext.unbindService(mServiceConnection);
99+
try {
100+
mContext.unbindService(mServiceConnection);
101+
} catch (Exception e) {
102+
// ignore.
103+
}
100104
mServiceConnection = null;
101105
mPlugin = null;
102106
}

0 commit comments

Comments
 (0)