fix deferring of CanPush, and stop deferring StartingPush
This commit is contained in:
parent
17ec59bcd1
commit
c0fab69f85
2 changed files with 9 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue