From 1ef851bce4b6db3b97112eba2972c1bf4097362e Mon Sep 17 00:00:00 2001 From: Steve Streeting Date: Wed, 21 Jul 2021 11:20:35 +0100 Subject: [PATCH] Oops, foreground check needs to actually loop --- Source/StevesUEHelpers/Private/StevesGameSubsystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/StevesUEHelpers/Private/StevesGameSubsystem.cpp b/Source/StevesUEHelpers/Private/StevesGameSubsystem.cpp index 8617c1c..a71b48c 100644 --- a/Source/StevesUEHelpers/Private/StevesGameSubsystem.cpp +++ b/Source/StevesUEHelpers/Private/StevesGameSubsystem.cpp @@ -56,7 +56,7 @@ void UStevesGameSubsystem::InitTheme() void UStevesGameSubsystem::InitForegroundCheck() { // Check foreground status every 0.5 seconds - GetWorld()->GetTimerManager().SetTimer(ForegroundCheckHandle, this, &UStevesGameSubsystem::CheckForeground, 0.5); + GetWorld()->GetTimerManager().SetTimer(ForegroundCheckHandle, this, &UStevesGameSubsystem::CheckForeground, 0.5, true); } void UStevesGameSubsystem::CheckForeground()