提交 63b90d4e 编写于 作者: 丁劲犇's avatar 丁劲犇 😸

Decrease threadhold to 1

上级 2e3d1201
......@@ -263,11 +263,10 @@ void ProxyObject::timerEvent(QTimerEvent *event)
}
//kick out clients when the other side is disconnected and
//no data left to be recieved.
if (counter % 30 ==0)
{
QList<QObject *> timeoutobjs;
foreach(QObject * obj, pending_kick.keys())
if (pending_kick[obj].secsTo(QDateTime::currentDateTime())>30)
if (pending_kick[obj].secsTo(QDateTime::currentDateTime())>1)
timeoutobjs.push_back(obj);
foreach(QObject * obj, pending_kick.keys())
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册