mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-25 21:40:10 +00:00
Make sure the streams clean up after themselves
This commit is contained in:
parent
563655a1a4
commit
c6518afa7a
@ -761,6 +761,11 @@ void PostgreSQL::_membersWatcher_Redis() {
|
|||||||
fprintf(stderr, "json parse error in networkWatcher_Redis\n");
|
fprintf(stderr, "json parse error in networkWatcher_Redis\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (_rc->clusterMode) {
|
||||||
|
_cluster->xdel(key, id);
|
||||||
|
} else {
|
||||||
|
_redis->xdel(key, id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -873,6 +878,11 @@ void PostgreSQL::_networksWatcher_Redis() {
|
|||||||
fprintf(stderr, "json parse error in networkWatcher_Redis\n");
|
fprintf(stderr, "json parse error in networkWatcher_Redis\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (_rc->clusterMode) {
|
||||||
|
_cluster->xdel(key, id);
|
||||||
|
} else {
|
||||||
|
_redis->xdel(key, id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user