mirror of https://github.com/vitalif/phantomjs
Use the timer based exit.
Was caught in exec(). Apparently, on Windows an exit() cannot be scheduled before exec was called. Since a timer based exit was already implemented, use that.1.0
parent
e5062741a7
commit
bb355db6c4
|
@ -172,7 +172,7 @@ void Phantom::execute(const QString &fileName)
|
|||
file.setFileName(fileName);
|
||||
if (!file.open(QFile::ReadOnly)) {
|
||||
std::cerr << "Can't open " << qPrintable(fileName) << std::endl << std::endl;
|
||||
QApplication::instance()->exit(1);
|
||||
exit(1);
|
||||
return;
|
||||
}
|
||||
m_script = file.readAll();
|
||||
|
|
Loading…
Reference in New Issue