Skip to content

Commit

Permalink
dock: Leave a log that docks are closed
Browse files Browse the repository at this point in the history
To identify when a crash happened while the shutdown process of obs,
leave a log that scope-docks are closed.
  • Loading branch information
norihiro committed Jun 7, 2023
1 parent f746588 commit cf64d7f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/scope-dock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,14 @@ void ScopeDock::hideEvent(QHideEvent *)

static void close_all_docks()
{
if (docks)
if (docks && docks->size()) {
blog(LOG_INFO, "Closing %d remaining scope docks...", (int)docks->size());
while (docks->size()) {
(*docks)[docks->size() - 1]->close();
delete (*docks)[docks->size() - 1];
}
blog(LOG_INFO, "Closed all remaining scope docks.");
}
}

static void save_load_scope_docks(obs_data_t *save_data, bool saving, void *)
Expand Down

0 comments on commit cf64d7f

Please sign in to comment.