fix pubToFeed
This commit is contained in:
parent
bc55e59c73
commit
56a9caf8c1
1 changed files with 1 additions and 1 deletions
|
|
@ -178,12 +178,12 @@ const react = () => {
|
||||||
const newIncoming = inc || null
|
const newIncoming = inc || null
|
||||||
|
|
||||||
if (
|
if (
|
||||||
newIncoming === pubToLastIncoming[pub] ||
|
|
||||||
// if disconnected, the same incoming feed will try to overwrite the
|
// if disconnected, the same incoming feed will try to overwrite the
|
||||||
// nulled out pubToLastIncoming[pub] entry. Making the listener for that
|
// nulled out pubToLastIncoming[pub] entry. Making the listener for that
|
||||||
// pub feed pair fire up again, etc. Now. When the user disconnects from
|
// 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.
|
// this side of things. He will overwrite the pub to incoming with null.
|
||||||
// Let's allow that.
|
// Let's allow that.
|
||||||
|
newIncoming === pubToLastIncoming[pub] ||
|
||||||
(pubToFeed[pub] === 'disconnected' && newIncoming !== null)
|
(pubToFeed[pub] === 'disconnected' && newIncoming !== null)
|
||||||
) {
|
) {
|
||||||
// eslint-disable-next-line no-continue
|
// eslint-disable-next-line no-continue
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue