From 4d00e8c569933dc7576a7b501f3caea0f4d30737 Mon Sep 17 00:00:00 2001 From: Andy Matuschak Date: Fri, 24 Feb 2012 08:55:13 -0800 Subject: [PATCH] Fixes #157: Delayed relaunch not working --- SUBasicUpdateDriver.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SUBasicUpdateDriver.m b/SUBasicUpdateDriver.m index 340e7f09..a53a354c 100644 --- a/SUBasicUpdateDriver.m +++ b/SUBasicUpdateDriver.m @@ -279,7 +279,7 @@ { NSInvocation *invocation = [NSInvocation invocationWithMethodSignature:[[self class] instanceMethodSignatureForSelector:@selector(installWithToolAndRelaunch:)]]; [invocation setSelector:@selector(installWithToolAndRelaunch:)]; - [invocation setArgument:&relaunch atIndex:0]; + [invocation setArgument:&relaunch atIndex:2]; [invocation setTarget:self]; postponedOnce = YES; if ([[updater delegate] updater:updater shouldPostponeRelaunchForUpdate:updateItem untilInvoking:invocation])