Debug when OneShot node is about to disconnect.

This commit is contained in:
R E Broadley 2014-06-23 16:23:06 +07:00 committed by Evan Duffield
parent e025fe7934
commit b7ac800699

View File

@ -4318,8 +4318,10 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
addrman.Add(vAddrOk, pfrom->addr, 2 * 60 * 60);
if (vAddr.size() < 1000)
pfrom->fGetAddr = false;
if (pfrom->fOneShot)
if (pfrom->fOneShot) {
printf("OneShot. Disconnecting\n");
pfrom->fDisconnect = true;
}
}