Skip to content

Commit

Permalink
Fix start-paused issue with inspector tab (#4527)
Browse files Browse the repository at this point in the history
  • Loading branch information
CoderDake committed Sep 27, 2022
1 parent dd91e2b commit b2b6c61
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -151,6 +151,11 @@ class InspectorController extends DisposableController
.hasServiceExtension(extensions.toggleSelectWidgetMode.extension);

void _onClientChange(bool added) {
if (!added && _clientCount == 0) {
// Don't try to remove clients if there are none
return;
}

_clientCount += added ? 1 : -1;
assert(_clientCount >= 0);
if (_clientCount == 1) {
Expand Down

0 comments on commit b2b6c61

Please sign in to comment.