Skip to content

Commit

Permalink
vm(qemu): reset run as snapshot on each start
Browse files Browse the repository at this point in the history
Fixes #5025
  • Loading branch information
osy committed Mar 4, 2023
1 parent 202c2e8 commit 8de800f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Managers/UTMQemuVirtualMachine.m
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,8 @@ - (void)_vmStartWithCompletion:(void (^)(NSError * _Nullable))completion {
[self.logging logToFile:self.config.qemuDebugLogURL];
}

if (self.isRunningAsSnapshot) {
self.config.qemuIsDisposable = self.isRunningAsSnapshot;
} else {
self.config.qemuIsDisposable = self.isRunningAsSnapshot;
if (!self.isRunningAsSnapshot) {
// Loading save states isn't possible when -snapshot is used
if (self.registryEntry.hasSaveState) {
self.config.qemuSnapshotName = kSuspendSnapshotName;
Expand Down

0 comments on commit 8de800f

Please sign in to comment.