mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user