do not try to reconnect on connecting
This commit is contained in:
@@ -750,6 +750,11 @@ async function onActionClicked(tab: chrome.tabs.Tab): Promise<void> {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (tabInfo?.state === 'connecting') {
|
||||||
|
logger.debug('Tab is already connecting, ignoring click')
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if (tabInfo?.state === 'connected') {
|
if (tabInfo?.state === 'connected') {
|
||||||
await disconnectTab(tab.id)
|
await disconnectTab(tab.id)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user