fix core in "wait in line" logic
when getting link info in Linkdb.cpp.