azerothcore / mod-solo-lfg

Solo LFG Module for use on AzerothCore 3.3.5a
https://azerothcore.org
MIT License
41 stars 38 forks source link

Bug: New hook ToggleTesting makes worldserver to restart #42

Open gabrielveras opened 3 months ago

gabrielveras commented 3 months ago

Current Behaviour

sLFGMgr->ToggleTesting() causes the worldserver to restart

Expected Behaviour

worldserver not to restart

Steps to reproduce the problem

git clone azerothcore master git clone lfg solo docker compose worldserver keeps restarting

Extra Notes

No response

AC rev. hash/commit

unable to run

Operating system

linux on docker

Custom changes or Modules

No response

gabrielveras commented 3 months ago

It works if I force solo queue with the following workaround: File LFGMgr.cpp: [1742] if (true || !m_Testing) [1837] if ((true || !m_Testing) && !allAnswered) File LFGMgr.h: [579] [[nodiscard]] bool IsTesting() const { return true || m_Testing; }