Skip to content

Commit 37ba749

Browse files
committed
Prevent SDK relaunch
1 parent fbaa242 commit 37ba749

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Assets/Adjust.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ void OnApplicationPause(bool pauseStatus) {
3636

3737
public static void appDidLaunch(string appToken, AdjustUtil.AdjustEnvironment environment, AdjustUtil.LogLevel logLevel, bool eventBuffering) {
3838
if (Adjust.instance != null) {
39-
Debug.Log("adjust: warning, SDK already started. Restarting");
39+
Debug.Log("adjust: error, SDK already started.");
40+
return;
4041
}
4142

4243
#if UNITY_EDITOR

0 commit comments

Comments
 (0)