From 0ab5f4c0a1ed35a3cb1f9e6cd919094e0a8f2b49 Mon Sep 17 00:00:00 2001 From: ckolivas Date: Wed, 28 Jan 2015 10:55:50 +1100 Subject: [PATCH] Do not reconnect to an instance that still holds a reference --- src/stratifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index 15670dc2..1427cc9b 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -1296,7 +1296,7 @@ static uint64_t disconnected_sessionid_exists(sdata_t *sdata, const char *sessio } instance = NULL; HASH_FIND(hh, sdata->disconnected_instances, &enonce1_64, sizeof(uint64_t), instance); - if (instance) { + if (instance && !instance->ref) { /* Delete the entry once we are going to use it since there * will be a new instance with the enonce1_64 */ old_id = instance->id;