Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
Add log messages for debugging shutdown problem, iina#3590
Browse files Browse the repository at this point in the history
  • Loading branch information
low-batt authored and CarterLi committed Feb 28, 2022
1 parent 48e2443 commit 08f6cbd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions iina/MPVController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -655,8 +655,10 @@ class MPVController: NSObject {

switch eventId {
case MPV_EVENT_SHUTDOWN:
Logger.log("Received shutdown event for mpv context \(String(describing: mpvClientName))")
let quitByMPV = !player.isMpvTerminating
if quitByMPV {
Logger.log("Calling NSApp.terminate")
DispatchQueue.main.sync {
NSApp.terminate(nil)
}
Expand Down

0 comments on commit 08f6cbd

Please sign in to comment.