femanager, small fix

Origin commit data
------------------
Commit: 3faf6070a6
Author: BPanther <bpanther_ts@hotmail.com>
Date: 2019-12-30 (Mon, 30 Dec 2019)
This commit is contained in:
BPanther
2019-12-30 17:43:28 +01:00
committed by vanhofen
parent ede80ff519
commit 2a1a2a603c

View File

@@ -516,21 +516,27 @@ void CFEManager::Open(int _fe)
void CFEManager::Close()
{
if(have_locked)
if (have_locked)
return;
for(fe_map_iterator_t it = femap.begin(); it != femap.end(); it++) {
for (fe_map_iterator_t it = femap.begin(); it != femap.end(); it++) {
CFrontend * fe = it->second;
if(!fe->Locked())
fe->Close();
else
if (unlockFrontend(fe, true))
fe->Close();
}
}
void CFEManager::Close(int _fe)
{
CFrontend * fe = getFE(_fe);
if(!fe->Locked())
if (!fe->Locked())
fe->Close();
else
if (unlockFrontend(fe, true))
fe->Close();
}
CFrontend * CFEManager::getFE(int index)