mirror of
https://github.com/owntracks/recorder.git
synced 2026-05-05 02:36:45 +00:00
16
recorder.c
16
recorder.c
@@ -1405,12 +1405,18 @@ int main(int argc, char **argv)
|
||||
return (-1);
|
||||
}
|
||||
|
||||
/*
|
||||
* Push list of topics into the array so that we can
|
||||
* (re)subscribe in on_connect()
|
||||
*/
|
||||
if (argc >= 1) { /* topics on command line override config */
|
||||
|
||||
/*
|
||||
* Push list of topics into the array so that we can
|
||||
* (re)subscribe in on_connect()
|
||||
*/
|
||||
|
||||
if (ud->topics != NULL) {
|
||||
json_delete(ud->topics);
|
||||
ud->topics = NULL;
|
||||
}
|
||||
|
||||
if (ud->topics == NULL) {
|
||||
ud->topics = json_mkarray();
|
||||
|
||||
for (i = 0; i < argc; i++) {
|
||||
|
||||
Reference in New Issue
Block a user