From 6165eeab720c3e4beb297f01f782671573228ee0 Mon Sep 17 00:00:00 2001 From: martinchrzan Date: Sun, 10 Mar 2019 19:32:09 +0100 Subject: [PATCH] Fixing issue which was preventing application to shut down (running thread) --- .../Shell/ShellObjectWatcher/MessageListener.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/source/WindowsAPICodePack/Shell/ShellObjectWatcher/MessageListener.cs b/source/WindowsAPICodePack/Shell/ShellObjectWatcher/MessageListener.cs index 9fd90f12..24c6fe82 100644 --- a/source/WindowsAPICodePack/Shell/ShellObjectWatcher/MessageListener.cs +++ b/source/WindowsAPICodePack/Shell/ShellObjectWatcher/MessageListener.cs @@ -147,6 +147,7 @@ private static int WndProc(IntPtr hwnd, uint msg, IntPtr wparam, IntPtr lparam) } break; case (uint)WindowMessage.Destroy: + _running = false; break; default: MessageListener listener;