diff options
Diffstat (limited to 'src/Network/BitTorrent/Tracker/RPC.hs')
-rw-r--r-- | src/Network/BitTorrent/Tracker/RPC.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Network/BitTorrent/Tracker/RPC.hs b/src/Network/BitTorrent/Tracker/RPC.hs index b3e962fa..cdc7d494 100644 --- a/src/Network/BitTorrent/Tracker/RPC.hs +++ b/src/Network/BitTorrent/Tracker/RPC.hs | |||
@@ -139,7 +139,7 @@ withManager opts info = bracket (newManager opts info) closeManager | |||
139 | data RpcException | 139 | data RpcException |
140 | = UdpException UDP.RpcException -- ^ UDP RPC driver failure; | 140 | = UdpException UDP.RpcException -- ^ UDP RPC driver failure; |
141 | | HttpException HTTP.RpcException -- ^ HTTP RPC driver failure; | 141 | | HttpException HTTP.RpcException -- ^ HTTP RPC driver failure; |
142 | | UnrecognizedProtocol String -- ^ unsupported scheme in announce URI; | 142 | | UnrecognizedScheme String -- ^ unsupported scheme in announce URI; |
143 | | GenericException String -- ^ for furter extensibility. | 143 | | GenericException String -- ^ for furter extensibility. |
144 | deriving (Show, Typeable) | 144 | deriving (Show, Typeable) |
145 | 145 | ||
@@ -158,7 +158,7 @@ dispatch URI {..} http udp | |||
158 | | uriScheme == "http:" || | 158 | | uriScheme == "http:" || |
159 | uriScheme == "https:" = packException HttpException http | 159 | uriScheme == "https:" = packException HttpException http |
160 | | uriScheme == "udp:" = packException UdpException udp | 160 | | uriScheme == "udp:" = packException UdpException udp |
161 | | otherwise = throwIO $ UnrecognizedProtocol uriScheme | 161 | | otherwise = throwIO $ UnrecognizedScheme uriScheme |
162 | 162 | ||
163 | announce :: Manager -> URI -> SAnnounceQuery -> IO AnnounceInfo | 163 | announce :: Manager -> URI -> SAnnounceQuery -> IO AnnounceInfo |
164 | announce Manager {..} uri simpleQuery | 164 | announce Manager {..} uri simpleQuery |