summaryrefslogtreecommitdiff
path: root/src/Network/BitTorrent/Tracker/RPC
diff options
context:
space:
mode:
authorMateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>2014-08-02 00:34:30 +0200
committerMateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>2014-08-02 00:52:31 +0200
commit8c06c997e2072c23db4273cdd000b39de8b70035 (patch)
treec49c69e49169cb2783743ca40772d4bc6278d811 /src/Network/BitTorrent/Tracker/RPC
parentc503cd761c21ad2c7d1ff2d2fe7595ad965ab4aa (diff)
Fix some trivial UDPSpec failures
Diffstat (limited to 'src/Network/BitTorrent/Tracker/RPC')
-rw-r--r--src/Network/BitTorrent/Tracker/RPC/UDP.hs8
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