GitHubUpdates icon indicating copy to clipboard operation
GitHubUpdates copied to clipboard

Relauncher hangs when update complete & relaunch

Open xcodebuild opened this issue 6 years ago • 1 comments

image

xcodebuild avatar May 05 '19 14:05 xcodebuild

Seems it run into a infinite loop with below code:

        wait:
        
        for( app in [ NSWorkspace sharedWorkspace ].runningApplications.copy )
        {
            if( [ app.bundleURL.path isEqualToString: path ] )
            {
                goto wait;
            }
        }

I think we need a max retry limit and we'd better sleep for a while in loop

xcodebuild avatar May 05 '19 14:05 xcodebuild