better filtering
This commit is contained in:
parent
806ff0bab7
commit
e90c3b2066
1 changed files with 2 additions and 3 deletions
|
|
@ -44,10 +44,9 @@ const react = () => {
|
|||
|
||||
const lastReqID = pubToLastSentReqID[recipientPub]
|
||||
const isStale = typeof lastReqID !== 'undefined' && lastReqID !== sentReqID
|
||||
const aHandshakeWasEstablishedAtSomePoint =
|
||||
typeof pubToIncoming[recipientPub] !== 'undefined'
|
||||
const isConnected = typeof pubToIncoming[recipientPub] !== 'undefined'
|
||||
|
||||
if (isStale && aHandshakeWasEstablishedAtSomePoint) {
|
||||
if (isStale || isConnected) {
|
||||
// eslint-disable-next-line no-continue
|
||||
continue
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue