diff options
author | Sam Truzjan <pxqr.sta@gmail.com> | 2014-08-03 12:45:06 +0400 |
---|---|---|
committer | Sam Truzjan <pxqr.sta@gmail.com> | 2014-08-03 12:45:06 +0400 |
commit | 023d8102b70e5e5d14ed1d38d6e24fc7e4452fb8 (patch) | |
tree | c49c69e49169cb2783743ca40772d4bc6278d811 /src/Network/BitTorrent/Tracker/RPC/UDP.hs | |
parent | c503cd761c21ad2c7d1ff2d2fe7595ad965ab4aa (diff) | |
parent | 8c06c997e2072c23db4273cdd000b39de8b70035 (diff) |
Merge pull request #11 from Fuuzetsu/UDPSpec
Fix some trivial UDPSpec failures
Diffstat (limited to 'src/Network/BitTorrent/Tracker/RPC/UDP.hs')
-rw-r--r-- | src/Network/BitTorrent/Tracker/RPC/UDP.hs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Network/BitTorrent/Tracker/RPC/UDP.hs b/src/Network/BitTorrent/Tracker/RPC/UDP.hs index 24e96238..31b6b870 100644 --- a/src/Network/BitTorrent/Tracker/RPC/UDP.hs +++ b/src/Network/BitTorrent/Tracker/RPC/UDP.hs | |||
@@ -123,10 +123,14 @@ checkOptions Options {..} = do | |||
123 | throwIO $ userError "optMinTimeout must be positive" | 123 | throwIO $ userError "optMinTimeout must be positive" |
124 | 124 | ||
125 | unless (optMaxTimeout > 0) $ do | 125 | unless (optMaxTimeout > 0) $ do |
126 | throwIO $ userError "optMaxTimeout must be positive" | ||
127 | |||
128 | unless (optMultiplier > 0) $ do | ||
129 | throwIO $ userError "optMultiplier must be positive" | ||
130 | |||
131 | unless (optMaxTimeout > optMinTimeout) $ do | ||
126 | throwIO $ userError "optMaxTimeout must be greater than optMinTimeout" | 132 | throwIO $ userError "optMaxTimeout must be greater than optMinTimeout" |
127 | 133 | ||
128 | unless (optMinTimeout > 0) $ do | ||
129 | throwIO $ userError "optMinTimeout must be positive" | ||
130 | 134 | ||
131 | {----------------------------------------------------------------------- | 135 | {----------------------------------------------------------------------- |
132 | -- Manager state | 136 | -- Manager state |