mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-11-02 02:41:54 +00:00
Verify runtime ownership before stop
This commit is contained in:
1 parent
6e79960721
commit
325ed613be
5 files changed
+66
-5
No files matched your search
+3
-1
@@ -221,7 +221,9 @@ function stopThrough(adapters, action) {
|
||||
if (!adapter) throw new TorchError(`No runtime stopper for ${action.runtime}`, {
|
||||
code: 'RUNTIME_ADAPTER_MISSING', details: { runtime: action.runtime },
|
||||
});
|
||||
return adapter.stopSession({ runtimeSessionId: action.runtimeSessionId });
|
||||
return adapter.stopSession({
|
||||
runtimeSessionId: action.runtimeSessionId, worktree: action.worktree?.path,
|
||||
});
|
||||
}
|
||||
|
||||
function runCandidateAcceptance(candidateRoot, spawn) {
|
||||
|
||||
Reference in new issue
Block a user