mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-08-20 14:39:01 +00:00
Fix for https://github.com/eried/portapack-mayhem/issues/35 Capture app hang on exit
This commit is contained in:
@@ -201,6 +201,11 @@ void RecordView::start() {
|
||||
update_status_display();
|
||||
}
|
||||
|
||||
void RecordView::on_hide() {
|
||||
stop(); // Stop current recording
|
||||
View::on_hide();
|
||||
}
|
||||
|
||||
void RecordView::stop() {
|
||||
if( is_active() ) {
|
||||
capture_thread.reset();
|
||||
|
||||
Reference in New Issue
Block a user