fix slow tab closing

This commit is contained in:
sawka 2024-09-06 17:48:34 -07:00
parent b278d11aca
commit 3dbc8139eb

View File

@ -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
}