Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delayed relaunch not working #157

Closed
sroebert opened this issue Feb 24, 2012 · 1 comment
Closed

Delayed relaunch not working #157

sroebert opened this issue Feb 24, 2012 · 1 comment

Comments

@sroebert
Copy link

There is a bug in the installWithToolAndRelaunch: method of SUBasicUpdateDriver.m which prevents the application from restarting after the delegate has indicated that the relaunch should wait by returning YES to the updater:shouldPostponeRelaunchForUpdate:untilInvoking: method.

The install method creates an NSInvocation instance and sets the parameter for relaunch as follows:

[invocation setArgument:&relaunch atIndex:0];

The first two indices, 0 and 1 are reserved however (as can be read in Apple's documentation), so the index should be 2.

[invocation setArgument:&relaunch atIndex:2];

Simple change, but otherwise the app simply will not relaunch, as the Boolean value will become NO.

@andymatuschak
Copy link
Contributor

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants