diff --git a/src/tui/TuiExploitPanel.cpp b/src/tui/TuiExploitPanel.cpp index 515c82d..530844a 100644 --- a/src/tui/TuiExploitPanel.cpp +++ b/src/tui/TuiExploitPanel.cpp @@ -118,12 +118,6 @@ void TuiExploitPanel::exploit() std::thread([this]() { - const DeviceState deviceState = GetFrame()->GetDeviceState(); - if (!deviceState.connected || (deviceState.mode != DeviceMode::DFU && deviceState.mode != DeviceMode::Pongo)) { - m_is_exploiting = false; - return; - } - auto stage = std::make_shared>(STAGE_RESET); auto result = std::make_shared>(0); diff --git a/src/wx/ExploitPanel.cpp b/src/wx/ExploitPanel.cpp index d10ce7d..839198f 100644 --- a/src/wx/ExploitPanel.cpp +++ b/src/wx/ExploitPanel.cpp @@ -109,12 +109,6 @@ void ExploitPanel::StartExploit() std::thread([this]() { - const auto deviceState = GetDeviceState(); - if (!deviceState.connected || (deviceState.mode != DeviceMode::DFU && deviceState.mode != DeviceMode::Pongo)) { - wxTheApp->CallAfter([this]() { m_backButton->Enable(); }); - return; - } - auto stage = std::make_shared>(STAGE_RESET); auto result = std::make_shared>(0);