diff --git a/CHANGELOG.md b/CHANGELOG.md
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,7 +4,11 @@
 The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
 and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
 
-## 0.17.3
+## 0.17.10
+### Fixed
+- Correct disconnect timeout algorithm bug.
+
+## 0.17.9
 ### Fixed
 - Add randomised timeouts to avoid disconnecting all peers.
 
diff --git a/haskoin-node.cabal b/haskoin-node.cabal
--- a/haskoin-node.cabal
+++ b/haskoin-node.cabal
@@ -4,10 +4,10 @@
 --
 -- see: https://github.com/sol/hpack
 --
--- hash: 9c872ffbfe6ba1782d84d36820b3add05b620ce2377260543faac853126e6584
+-- hash: 935fb430e1b0574ed6f6901e3580c83804f13fc7aa1f0e353ce26dc82eaf7af4
 
 name:           haskoin-node
-version:        0.17.9
+version:        0.17.10
 synopsis:       P2P library for Bitcoin and Bitcoin Cash
 description:    Please see the README on GitHub at <https://github.com/haskoin/haskoin-node#readme>
 category:       Bitcoin, Finance, Network
diff --git a/src/Haskoin/Node/Manager.hs b/src/Haskoin/Node/Manager.hs
--- a/src/Haskoin/Node/Manager.hs
+++ b/src/Haskoin/Node/Manager.hs
@@ -344,7 +344,7 @@
     check_tickle now to o =
         now `diffUTCTime` onlinePeerTickled o > to
     check_conn now o =
-        when (onlinePeerDisconnect o `diffUTCTime` now > 0) $
+        when (now `diffUTCTime` onlinePeerDisconnect o > 0) $
         killPeer PeerTooOld p
     check_ping o =
         case onlinePeerPing o of
