Skip to content

Commit

Permalink
Fixes #64: Crash when reopening the App if it was closed with 'back' …
Browse files Browse the repository at this point in the history
…button. Fixes #67: SIP stack not initialized
  • Loading branch information
atsakiridis committed Jul 3, 2015
1 parent 5695410 commit 16f27cf
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,16 +121,15 @@ public static boolean isInitialized()
*/
public static RCDevice createDevice(String capabilityToken, RCDeviceListener deviceListener)
{
RCDevice device = new RCDevice(capabilityToken, deviceListener);
if (list.size() == 0) {
RCDevice device = new RCDevice(capabilityToken, deviceListener);
list.add(device);
}
else {
Log.i(TAG, "Device already exists, so we 're returning this one -multiple devices not implemented");
return list.get(0);
}

return device;
return list.get(0);
}

/**
Expand Down

0 comments on commit 16f27cf

Please sign in to comment.