bug fixed: two tracker leaders occur in rare case

pull/48/head
yuqing 2014-09-13 20:14:13 +08:00
parent fb7ae7d29a
commit f5425ae8cc
1 changed files with 1 additions and 0 deletions

View File

@ -1051,6 +1051,7 @@ static int _notify_reselect_tleader(ConnectionInfo *pTrackerServer)
static int notify_reselect_tracker_leader(ConnectionInfo *pTrackerServer)
{
int result;
ConnectionInfo *conn;
pTrackerServer->sock = -1;
if ((conn=tracker_connect_server(pTrackerServer, &result)) == NULL)