 
 
 func prepareUpdate(_ listener: ChatListener, _ rooms: [ChatRoom], isAuto: Bool = false) -> Bool {
+	if isUpdating {
+		return true
+	}
+	
 	do {
 		try downloadUpdate(isAuto: isAuto)
 	} catch DownloadFailure.noAutoupdate {

		return Process.launchedProcess(launchPath: path, arguments: arguments)
	#endif
}

func installUpdate() -> Bool {
	do {

		return false
	}
	
	isUpdating = true
	rooms.forEach {$0.postMessage("Installing update...")}
	listener.stop(.update)
	return true
