diff --git a/Client/Core/Keylogger/Logger.cs b/Client/Core/Keylogger/Logger.cs index 00f3a313..1cefc668 100644 --- a/Client/Core/Keylogger/Logger.cs +++ b/Client/Core/Keylogger/Logger.cs @@ -61,7 +61,7 @@ public Logger(double flushInterval) // It is a safe-guard because we want to make sure we unsubscribe from these // things or the client may not be able to get keystrokes/mouse clicks to any // other application (including Windows). - Dispose(true); + Dispose(false); } public void Dispose() @@ -82,10 +82,10 @@ protected virtual void Dispose(bool disposing) _timerFlush.Dispose(); } - Unsubscribe(); - disposed = true; } + + Unsubscribe(); } }