Skip to content

Commit

Permalink
Merge pull request #1379 from stgraber/lifecycle
Browse files Browse the repository at this point in the history
incusd/instance/qemu: Don't take over operations on console retrieval
  • Loading branch information
stgraber authored Nov 15, 2024
2 parents 05cd817 + d7f9ebf commit 8aa5456
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/server/instance/drivers/driver_qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -9329,7 +9329,10 @@ func (d *qemu) ConsoleLog() (string, error) {
return "", err
}

defer op.Done(nil)
// Only mark the operation as done if only processing the console retrieval.
if op.Action() == operationlock.ActionConsoleRetrieve {
defer op.Done(nil)
}

// Check if the agent is running.
monitor, err := qmp.Connect(d.monitorPath(), qemuSerialChardevName, d.getMonitorEventHandler(), d.QMPLogFilePath())
Expand Down

0 comments on commit 8aa5456

Please sign in to comment.