Skip to content

Commit

Permalink
Reduce delay before app closes on windows neutralinojs#1179
Browse files Browse the repository at this point in the history
  • Loading branch information
Spishous committed Apr 8, 2024
1 parent ef74003 commit 7b4ac74
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/webview/webview.h
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,11 @@ class win32_edge_engine {
});

// wait for dispatch() to complete
WaitForSingleObject(evtWindowClosed, 10000);
/* TODO: Check why this method doesn't trigger a signal on Windows
* when "exitProcessOnClose" is true. (Previous value: 10000)
* This wait causes a delay when closing the program.
*/
WaitForSingleObject(evtWindowClosed, 300);
CloseHandle(evtWindowClosed);

}
Expand Down

0 comments on commit 7b4ac74

Please sign in to comment.