mirror of
https://github.com/owntracks/recorder.git
synced 2026-08-23 11:26:16 +00:00
+11
-5
@@ -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