add thread names for peers

This commit is contained in:
sehraf 2016-06-01 16:33:13 +02:00
parent f16ee97093
commit bc23c2f7b9

View File

@ -347,7 +347,8 @@ int pqiperson::handleNotifyEvent_locked(NetInterface *ni, int newState,
activepqi = pqi; activepqi = pqi;
inConnectAttempt = false; inConnectAttempt = false;
activepqi->start(); // STARTUP THREAD. // STARTUP THREAD
activepqi->start("pqi " + PeerId().toStdString().substr(0, 11));
// reset all other children (clear up long UDP attempt) // reset all other children (clear up long UDP attempt)
for(it = kids.begin(); it != kids.end(); ++it) for(it = kids.begin(); it != kids.end(); ++it)