ames: don't say not responding if we haven't been talking

This commit is contained in:
Philip Monk 2019-12-03 20:21:43 -08:00
parent dd85ca6051
commit 9bc6ccb7fc
No known key found for this signature in database
GPG Key ID: B66E1F02604E44EC

View File

@ -1846,6 +1846,15 @@
++ on-memo
|= [=bone payload=* valence=?(%plea %boon)]
^+ peer-core
:: if we haven't been trying to talk to %live, reset timer
::
=? last-contact.qos.peer-state
?& ?=(%live -.qos.peer-state)
%- ~(all by snd.peer-state)
|= =message-pump-state
=(~ live.packet-pump-state.message-pump-state)
==
now
::
=/ =message-blob (jam payload)
=. peer-core (run-message-pump bone %memo message-blob)