Skip to content

Commit

Permalink
stopP removal.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlouis committed Feb 19, 2010
1 parent eae4606 commit 4b027fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/Process/PieceMgr.hs
Expand Up @@ -154,8 +154,7 @@ start logC mgrC fspC chokeC statC db supC =
pieceOk <- checkPiece pn
case pieceOk of
Nothing ->
do logFatal "PieceMgrP: Piece Nonexisting!"
stopP
do fail "PieceMgrP: Piece Nonexisting!"
Just True -> do completePiece pn
markDone pn
checkFullCompletion
Expand Down
6 changes: 2 additions & 4 deletions src/Process/Tracker.hs
Expand Up @@ -138,8 +138,7 @@ pokeTracker = do
url <- buildRequestURL upDownLeft
logDebug $ "Request URL: " ++ url
uri <- case parseURI url of
Nothing -> do logFatal $ "Could not parse the url " ++ url
stopP
Nothing -> fail $ "Could not parse the url " ++ url
Just u -> return u
resp <- trackerRequest uri
case resp of
Expand Down Expand Up @@ -248,8 +247,7 @@ buildRequestURL ss = do ti <- gets torrentInfo
prt = do lp <- gets localPort
case lp of
PortNumber pnum -> return $ fromIntegral pnum
_ -> do logFatal "Unknown port type"
stopP
_ -> do fail "Unknown port type"
trackerfyEvent ev =
case ev of
Running -> []
Expand Down

0 comments on commit 4b027fc

Please sign in to comment.