Skip to content

Commit c9dc64c

Browse files
committed
fix: remove hanging clones (#109)
1 parent 595c508 commit c9dc64c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/services/cloning/mode_base.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,9 @@ func (c *baseCloning) DestroyClone(cloneID string) error {
208208
}
209209

210210
if w.session == nil {
211-
return errors.New("clone is not started yet")
211+
c.deleteClone(cloneID)
212+
213+
return nil
212214
}
213215

214216
go func() {

0 commit comments

Comments
 (0)