Ignore:
Timestamp:
09/01/13 18:24:21 (11 years ago)
Author:
gost
Message:

[plugin] autotimer ... fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/autotimer/autotimer.c

    r23104 r23200  
    352352        free(tmpstr); tmpstr = NULL;
    353353        debug(10, "Autot Timer Plugin loadet !!!");
    354         if(getconfigint("at1_running", NULL) == 1)
    355         {
    356                 if(autotimerthread == NULL)
    357                 {
    358                         autostart = 120;
    359                         autotimerthread = addtimer(&autotimer_thread, START, 10000, 1, NULL, NULL, NULL);
    360                 }
    361         }
     354        if(getconfig("at1_akt", NULL) != NULL)
     355        {
     356                if(getconfigint("at1_running", NULL) == 1)
     357                {
     358                        if(autotimerthread == NULL)
     359                        {
     360                                autostart = 120;
     361                                autotimerthread = addtimer(&autotimer_thread, START, 10000, 1, NULL, NULL, NULL);
     362                        }
     363                }
     364        }
     365        else
     366                addconfigint("at1_running", 0);
    362367}
    363368
Note: See TracChangeset for help on using the changeset viewer.