mirror of
https://github.com/munki/munki.git
synced 2026-04-27 07:51:29 -05:00
Slow down a potential busy loop if MSU GUI is waiting for a restart alert to be dismissed.
This commit is contained in:
@@ -20,9 +20,10 @@
|
||||
# limitations under the License.
|
||||
|
||||
|
||||
import objc
|
||||
import os
|
||||
import socket
|
||||
import objc
|
||||
import time
|
||||
import munki
|
||||
import FoundationPlist
|
||||
from Foundation import *
|
||||
@@ -257,6 +258,7 @@ class MSUStatusWindowController(NSObject):
|
||||
while 1:
|
||||
if self.restartAlertDismissed:
|
||||
break
|
||||
time.sleep(.25) # slow a potential busy loop.
|
||||
return "1\n"
|
||||
|
||||
return ""
|
||||
|
||||
Reference in New Issue
Block a user