From 2335d9e6c508150fe77e5b4520b3380b12440e4a Mon Sep 17 00:00:00 2001 From: Jason Rush Date: Wed, 20 Nov 2013 19:11:35 -0600 Subject: [PATCH] Moved code around a little --- MiniKeePass/MiniKeePassAppDelegate.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MiniKeePass/MiniKeePassAppDelegate.m b/MiniKeePass/MiniKeePassAppDelegate.m index fcf09ba4..2712becb 100644 --- a/MiniKeePass/MiniKeePassAppDelegate.m +++ b/MiniKeePass/MiniKeePassAppDelegate.m @@ -275,10 +275,11 @@ - (void)handlePasteboardNotification:(NSNotification *)notification { // Get the clear clipboard timeout (in seconds) NSInteger clearClipboardTimeout = [appSettings clearClipboardTimeout]; - + + UIApplication *application = [UIApplication sharedApplication]; + // Initiate a background task __block UIBackgroundTaskIdentifier bgTask; - UIApplication *application = [UIApplication sharedApplication]; bgTask = [application beginBackgroundTaskWithExpirationHandler:^{ // End the background task [application endBackgroundTask:bgTask];