mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-14 05:03:03 +01:00
Fix small nodeslist parsing bug
This commit is contained in:
parent
4df44a7274
commit
f858714edd
@ -477,7 +477,7 @@ void *load_nodeslist_thread(void *data)
|
||||
/* If nodeslist does not contain any valid entries we set the last_scan value
|
||||
* to 0 so that it will fetch a new list the next time this function is called.
|
||||
*/
|
||||
if (idx == 0) {
|
||||
if (Nodes.count == 0) {
|
||||
const char *s = "{\"last_scan\":0}";
|
||||
rewind(fp);
|
||||
fwrite(s, strlen(s), 1, fp); // Not much we can do if it fails
|
||||
|
Loading…
Reference in New Issue
Block a user