mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-17 20:46:54 +02:00
Temp object was being destroyed before connection was used
This commit is contained in:
parent
d24c8d858c
commit
08cb72bdba
1 changed files with 2 additions and 1 deletions
|
@ -1666,7 +1666,8 @@ void PostgreSQL::onlineNotification_Redis()
|
|||
try {
|
||||
if (!lastOnline.empty()) {
|
||||
if (_rc->clusterMode) {
|
||||
auto tx = _cluster->redis(controllerId).transaction(true);
|
||||
auto redis = _cluster->redis(controllerId);
|
||||
auto tx = redis.transaction(true);
|
||||
_doRedisUpdate(tx, controllerId, lastOnline);
|
||||
} else {
|
||||
auto tx = _redis->transaction(true);
|
||||
|
|
Loading…
Add table
Reference in a new issue