From 787caddc0074df0b3fb217bad561be8fd71ca5b9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 4 May 2017 01:35:26 +0300 Subject: Fix possible crash in server dialog if close manaplus in wrong time. --- src/gui/windows/serverdialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/gui/windows/serverdialog.cpp b/src/gui/windows/serverdialog.cpp index 7c4af2291..a86fa0b1e 100644 --- a/src/gui/windows/serverdialog.cpp +++ b/src/gui/windows/serverdialog.cpp @@ -391,6 +391,7 @@ void ServerDialog::logic() MutexLocker tempLock(&mMutex); if (mDownloadStatus == ServerDialogDownloadStatus::COMPLETE) { + loadServers(); mDownloadStatus = ServerDialogDownloadStatus::OVER; mDescription->setCaption(std::string()); } @@ -783,7 +784,6 @@ int ServerDialog::downloadUpdate(void *ptr, if (finished) { - sd->loadServers(); MutexLocker lock1(&sd->mMutex); sd->mDownloadStatus = ServerDialogDownloadStatus::COMPLETE; } -- cgit v1.2.3-70-g09d2