fix: crash

This commit is contained in:
MistEO
2023-03-27 22:30:23 +08:00
parent cbc4dad941
commit 60d03697ac
2 changed files with 10 additions and 3 deletions

View File

@@ -166,6 +166,12 @@ bool asst::Controller::connect(const std::string& adb_path, const std::string& a
m_uuid = m_controller->get_uuid();
#ifdef ASST_DEBUG
if (config == "DEBUG") {
return true;
}
#endif
// try to find the fastest way
if (!screencap()) {
Log.error("Cannot find a proper way to screencap!");