Skip to content

Commit 7fad04e

Browse files
committed
Removed extra doSessionInit call
* This extra doSessionInit if we init a 2nd time isn't needed and address the issue covered in the new initWithContext_calledA2ndTimeAfter30OrMoreSeconds_doesNotStartNewSession test added in this PR. * For reference the extra doSessionInit call was added in this commit * 012cdb2#diff-2708f86f77e539cab647ecede9d5fcbead3bf0f954d7f9e536eafbc78ba760d6R685 * Ran `shouldSendTagsFromBackgroundOnAppKilled` test locally and it still passes after this change
1 parent a6951e6 commit 7fad04e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

OneSignalSDK/onesignal/src/main/java/com/onesignal/OneSignal.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,6 @@ synchronized private static void init(Context context) {
692692
if (notificationOpenedHandler != null)
693693
fireCallbackForOpenedNotifications();
694694
logger.debug("OneSignal SDK initialization already completed.");
695-
doSessionInit();
696695
return;
697696
}
698697

0 commit comments

Comments
 (0)