mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
fix slow tab closing
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@ func DeleteBlock(ctx context.Context, tabId string, blockId string) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("error deleting block: %w", err)
|
return fmt.Errorf("error deleting block: %w", err)
|
||||||
}
|
}
|
||||||
blockcontroller.StopBlockController(blockId)
|
go blockcontroller.StopBlockController(blockId)
|
||||||
sendBlockCloseEvent(tabId, blockId)
|
sendBlockCloseEvent(tabId, blockId)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user