]> git.siccegge.de Git - frida/frida.git/commitdiff
Only emit resetEvent if binary was succesfully loaded
authorChristoph Egger <christoph@christoph-egger.org>
Tue, 2 Jun 2015 21:31:53 +0000 (23:31 +0200)
committerChristoph Egger <christoph@christoph-egger.org>
Tue, 2 Jun 2015 21:31:53 +0000 (23:31 +0200)
src/core/InformationManager.cxx

index 7044381511b32ce270ad6fc32756bc6b2ce4b8bd..f59afa04aaf9c2e8f5f203fd8097c2ceed686b0a 100644 (file)
@@ -43,8 +43,8 @@ InformationManager::~InformationManager() {
 void InformationManager::reset(const std::string& filename) {
        this->filename = filename;
        disassembler.reset(createLLVMDisassembler(filename, this));
-       emit resetEvent();
        if (disassembler.get() != NULL) {
+               emit resetEvent();
                disassembler.get()->moveToThread(&disassemblerThread);
                connect(&disassemblerThread, &QThread::started,
                        disassembler.get(), &Disassembler::start);