qemu: remove the last sleep call
Finally, no more hacky sleep calls are left. Woohoo. This was already effectively done by the previous commit, but now that I know it works, I've removed the test path entirely
This commit is contained in:
@@ -23,10 +23,6 @@ export type QemuVmDefinition = {
|
||||
/// Temporary path base (for UNIX sockets/etc.)
|
||||
const kVmTmpPathBase = `/tmp`;
|
||||
|
||||
// Test so I can test removing any (or well, the lone) sleep calls,
|
||||
// in the qemuvm code.
|
||||
const kTestDisableSleep = true;
|
||||
|
||||
// writer implementation for process standard I/O
|
||||
class StdioWriter implements IQmpClientWriter {
|
||||
stdout;
|
||||
@@ -236,9 +232,6 @@ export class QemuVM extends EventEmitter {
|
||||
|
||||
if (self.state != VMState.Stopping) {
|
||||
if (code == 0) {
|
||||
if(!kTestDisableSleep)
|
||||
await Shared.Sleep(500);
|
||||
|
||||
await self.StartQemu(split);
|
||||
} else {
|
||||
self.VMLog().Error('QEMU exited with a non-zero exit code. This usually means an error in the command line. Stopping VM.');
|
||||
|
||||
Reference in New Issue
Block a user