Skip to content

Commit 20275e8

Browse files
committed
Fixes #180: Alert window leaked in Call screen
1 parent 2568416 commit 20275e8

File tree

1 file changed

+2
-0
lines changed
  • restcomm.android.client.sdk/src/main/java/org/mobicents/restcomm/android/client/sdk

1 file changed

+2
-0
lines changed

restcomm.android.client.sdk/src/main/java/org/mobicents/restcomm/android/client/sdk/RCDevice.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,8 @@ public void run() {
269269
DeviceImpl.GetInstance().Shutdown();
270270
}
271271
}
272+
// important, otherwise if shutdown and re-initialized the old RCDevice instance will be getting events
273+
RCClient.getContext().unregisterReceiver(this);
272274
state = DeviceState.OFFLINE;
273275
}
274276

0 commit comments

Comments
 (0)