From dcf0d6f72d5b3c800ed4d6455dbd013c3d2d18e3 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Thu, 11 Jul 2019 00:28:19 +0200 Subject: [PATCH] Fix thread crash in mtpdevice --- src/device/mtpdevice.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/device/mtpdevice.cpp b/src/device/mtpdevice.cpp index ab5237584..8cab6b728 100644 --- a/src/device/mtpdevice.cpp +++ b/src/device/mtpdevice.cpp @@ -88,6 +88,7 @@ void MtpDevice::ConnectAsync() { void MtpDevice::LoadFinished(bool success) { + loader_thread_->exit(); loader_->deleteLater(); loader_ = nullptr; db_busy_.unlock();