From 56a9caf8c17d9ce815c9549e1d9994eff51a84b0 Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Sat, 15 Feb 2020 15:33:16 -0400 Subject: [PATCH] fix pubToFeed --- services/gunDB/contact-api/streams/pubToFeed.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/gunDB/contact-api/streams/pubToFeed.js b/services/gunDB/contact-api/streams/pubToFeed.js index 20a2f54b..9995f5bf 100644 --- a/services/gunDB/contact-api/streams/pubToFeed.js +++ b/services/gunDB/contact-api/streams/pubToFeed.js @@ -178,12 +178,12 @@ const react = () => { const newIncoming = inc || null if ( - newIncoming === pubToLastIncoming[pub] || // if disconnected, the same incoming feed will try to overwrite the // nulled out pubToLastIncoming[pub] entry. Making the listener for that // pub feed pair fire up again, etc. Now. When the user disconnects from // this side of things. He will overwrite the pub to incoming with null. // Let's allow that. + newIncoming === pubToLastIncoming[pub] || (pubToFeed[pub] === 'disconnected' && newIncoming !== null) ) { // eslint-disable-next-line no-continue