mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
CComponentsFrmClock: ensure slot connect, if it is empty
This commit is contained in:
@@ -317,8 +317,10 @@ bool CComponentsFrmClock::startClock()
|
||||
|
||||
if (cl_timer == NULL){
|
||||
cl_timer = new CComponentsTimer();
|
||||
dprintf(DEBUG_INFO, "[CComponentsFrmClock] [%s] init slot...\n", __func__);
|
||||
cl_timer->OnTimer.connect(cl_sl);
|
||||
if (cl_timer->OnTimer.empty()){
|
||||
dprintf(DEBUG_INFO,"\033[33m[CComponentsFrmClock]\t[%s] init slot...\033[0m\n", __func__);
|
||||
cl_timer->OnTimer.connect(cl_sl);
|
||||
}
|
||||
}
|
||||
cl_timer->setTimerIntervall(cl_interval);
|
||||
|
||||
|
Reference in New Issue
Block a user