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 committed Apr 27, 2022
1 parent 9335e98 commit 9019ca8
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 @@ -656,8 +656,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 9019ca8

Please sign in to comment.