Exit AnalTask if interrupted

This commit is contained in:
Florian Märkl 2018-05-27 21:49:14 +02:00
parent 4ce04c4f95
commit 5dbaefb176

View File

@ -52,6 +52,10 @@ void AnalTask::runTask()
} }
} }
if (isInterrupted()) {
return;
}
if (!options.os.isNull()) { if (!options.os.isNull()) {
Core()->cmd("e asm.os=" + options.os); Core()->cmd("e asm.os=" + options.os);
} }
@ -61,10 +65,18 @@ void AnalTask::runTask()
Core()->loadPDB(options.pdbFile); Core()->loadPDB(options.pdbFile);
} }
if (isInterrupted()) {
return;
}
if (!options.script.isNull()) { if (!options.script.isNull()) {
Core()->loadScript(options.script); Core()->loadScript(options.script);
} }
if (isInterrupted()) {
return;
}
if (options.endian != InitialOptions::Endianness::Auto) { if (options.endian != InitialOptions::Endianness::Auto) {
Core()->setEndianness(options.endian == InitialOptions::Endianness::Big); Core()->setEndianness(options.endian == InitialOptions::Endianness::Big);
} }