From cfbb45470a3bfd4f3e0f1f1411403afca95ff09b Mon Sep 17 00:00:00 2001 From: Mike Zboray Date: Mon, 15 May 2017 19:26:53 -0700 Subject: [PATCH] fix incorrect operator --- src/Papercut.Network/ConnectionManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Papercut.Network/ConnectionManager.cs b/src/Papercut.Network/ConnectionManager.cs index fe1707bf..2a6a2062 100644 --- a/src/Papercut.Network/ConnectionManager.cs +++ b/src/Papercut.Network/ConnectionManager.cs @@ -122,7 +122,7 @@ void InitCleanupObservables() foreach (int key in keys) { // If they have been idle for too long, disconnect them - if (DateTime.Now < _connections[key].LastActivity.AddMinutes(20)) + if (DateTime.Now > _connections[key].LastActivity.AddMinutes(20)) { Logger.Information( "Session timeout, disconnecting {ConnectionId}",