summaryrefslogtreecommitdiffstats
path: root/api/logic/minecraft/mod/ModFolderModel.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2019-08-04 11:12:19 +0200
committerPetr Mrázek <peterix@gmail.com>2019-08-04 11:12:19 +0200
commitb75ba53d4b00124fd8e04b47b11fd2fc6bd9b730 (patch)
tree714299a5f26e1f76a93a1902f2e762705bd7156d /api/logic/minecraft/mod/ModFolderModel.cpp
parent90378739282638c90906f09d97ba13940de8f043 (diff)
downloadMultiMC-b75ba53d4b00124fd8e04b47b11fd2fc6bd9b730.tar
MultiMC-b75ba53d4b00124fd8e04b47b11fd2fc6bd9b730.tar.gz
MultiMC-b75ba53d4b00124fd8e04b47b11fd2fc6bd9b730.tar.lz
MultiMC-b75ba53d4b00124fd8e04b47b11fd2fc6bd9b730.tar.xz
MultiMC-b75ba53d4b00124fd8e04b47b11fd2fc6bd9b730.zip
GH-2785 fix crash caused by starting multiple mod folder update tasks
Diffstat (limited to 'api/logic/minecraft/mod/ModFolderModel.cpp')
-rw-r--r--api/logic/minecraft/mod/ModFolderModel.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/logic/minecraft/mod/ModFolderModel.cpp b/api/logic/minecraft/mod/ModFolderModel.cpp
index 632dd959..c9a69995 100644
--- a/api/logic/minecraft/mod/ModFolderModel.cpp
+++ b/api/logic/minecraft/mod/ModFolderModel.cpp
@@ -76,6 +76,7 @@ bool ModFolderModel::update()
}
if(m_update) {
scheduled_update = true;
+ return true;
}
auto task = new ModFolderLoadTask(m_dir);