mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-03-20 05:46:01 -04:00
Stop capture on error.
This commit is contained in:
parent
8de12ff570
commit
537296b8c3
@ -268,6 +268,7 @@ void RecordView::on_tick_second() {
|
||||
if( is_active() ) {
|
||||
const auto error = capture_thread->error();
|
||||
if( error.is_valid() ) {
|
||||
stop();
|
||||
report_error(error.value());
|
||||
}
|
||||
const auto dropped_percent = std::min(99U, capture_thread->state().dropped_percent());
|
||||
|
Loading…
x
Reference in New Issue
Block a user