Skip to content

Commit 16f27cf

Browse files
committed
Fixes #64: Crash when reopening the App if it was closed with 'back' button. Fixes #67: SIP stack not initialized
1 parent 5695410 commit 16f27cf

File tree

1 file changed

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

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,16 +121,15 @@ public static boolean isInitialized()
121121
*/
122122
public static RCDevice createDevice(String capabilityToken, RCDeviceListener deviceListener)
123123
{
124-
RCDevice device = new RCDevice(capabilityToken, deviceListener);
125124
if (list.size() == 0) {
125+
RCDevice device = new RCDevice(capabilityToken, deviceListener);
126126
list.add(device);
127127
}
128128
else {
129129
Log.i(TAG, "Device already exists, so we 're returning this one -multiple devices not implemented");
130-
return list.get(0);
131130
}
132131

133-
return device;
132+
return list.get(0);
134133
}
135134

136135
/**

0 commit comments

Comments
 (0)