private synchronized boolean addResult(String ip, String result) {
processSet.remove(ip);
return resultMap.put(ip, result) == null;
}
private boolean process() {
<BUG>String ip = pollFirst();

if (ip == null) {
</BUG>
return false;

private synchronized boolean addResult(String ip, String result) {
processSet.remove(ip);
return resultMap.put(ip, result) == null;
}
private boolean process() {
String token = pollFirst();
if (token == null) {
return false;
