From 3dbc8139ebbfdf9299c6ec87ec3c7fc96c50f83f Mon Sep 17 00:00:00 2001 From: sawka Date: Fri, 6 Sep 2024 17:48:34 -0700 Subject: [PATCH] fix slow tab closing --- pkg/wcore/wcore.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/wcore/wcore.go b/pkg/wcore/wcore.go index 0b820bdcc..736f86754 100644 --- a/pkg/wcore/wcore.go +++ b/pkg/wcore/wcore.go @@ -30,7 +30,7 @@ func DeleteBlock(ctx context.Context, tabId string, blockId string) error { if err != nil { return fmt.Errorf("error deleting block: %w", err) } - blockcontroller.StopBlockController(blockId) + go blockcontroller.StopBlockController(blockId) sendBlockCloseEvent(tabId, blockId) return nil }