fix deferring of CanPush, and stop deferring StartingPush

This commit is contained in:
Joey Hess 2012-11-10 01:34:03 -04:00
parent 17ec59bcd1
commit c0fab69f85
2 changed files with 9 additions and 6 deletions

View file

@ -53,6 +53,11 @@ getClientID (ReceivePackOutput cid _) = Just cid
getClientID (SendPackOutput cid _) = Just cid
getClientID (ReceivePackDone cid _) = Just cid
isPushInitiationMessage :: NetMessage -> Bool
isPushInitiationMessage (CanPush _) = True
isPushInitiationMessage (PushRequest _) = True
isPushInitiationMessage _ = False
data NetMessager = NetMessager
-- outgoing messages
{ netMessages :: TChan (NetMessage)