Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid some crashes in the process scanner thread
get_window_process() can fail for many reasons, one of them being lack of permission to inject into some processes. Before this change, the process scanner thread could crash by simply launching the Task Manager (taskmgr.exe), before we injected into Spotify. I also added a check for event.window_handle(), just to be safe.
- Loading branch information