提交 10f6f5c3 编写于 作者: wu-sheng's avatar wu-sheng

1.判断错误造成死循环。

上级 91b59f53
......@@ -27,7 +27,7 @@ public class DataSenderWithCopies implements IDataSender{
*/
public boolean append(IDataSender dataSender){
senders.add(dataSender);
return maxCopyNum == senders.size();
return senders.size() < maxCopyNum;
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册