mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-19 03:45:43 +00:00
refactor(Core/Misc): add braces and impove codestyle (#6402)
This commit is contained in:
@@ -26,7 +26,9 @@ namespace Acore
|
||||
std::lock_guard lock(_mutex);
|
||||
|
||||
if (_handled.find(sig) != _handled.end())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
_handled.insert(sig);
|
||||
signal(sig, func);
|
||||
@@ -36,7 +38,9 @@ namespace Acore
|
||||
~SignalHandler()
|
||||
{
|
||||
for (auto const& sig : _handled)
|
||||
{
|
||||
signal(sig, nullptr);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user