Skip to content

Commit

Permalink
Fix weird crash in world when no mmaps are found
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Feb 1, 2025
1 parent 5c9e15b commit 42e4319
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/game/World/World.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,10 @@ World::~World()
VMAP::VMapFactory::clear();
MMAP::MMapFactory::clear();

m_lfgQueueThread.join();
m_bgQueueThread.join();
if (m_lfgQueueThread.joinable())
m_lfgQueueThread.join();
if (m_bgQueueThread.joinable())
m_bgQueueThread.join();
}

/// Cleanups before world stop
Expand Down

1 comment on commit 42e4319

@al3xc1985
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wotlk has the same behaviour

Please sign in to comment.