]> git.rkrishnan.org Git - functorrent.git/blobdiff - src/FuncTorrent/Tracker.hs
Tracker/Udp: refactor the trackerloop, add timeouts
[functorrent.git] / src / FuncTorrent / Tracker.hs
index 9873fe1513f073f05efe79b97b2e9bae1522e75e..8f6a5cc379dc5fc46a45c395899bab6f985e692a 100644 (file)
@@ -61,6 +61,7 @@ runTracker msgChannel fsChan infohash port peerId announceList sz = do
       return ()
     Udp -> do
       _ <- forkIO $ UT.trackerLoop turl (fromIntegral port) peerId infohash fsChan initialTState
+      runStateT (msgHandler msgChannel) initialTState
       return ()
     _ ->
       error "Tracker Protocol unimplemented"