[Phpfreechat-svn] SF.net SVN: phpfreechat:[1275] trunk/data/public/js/pfcclient.js
Status: Beta
Brought to you by:
kerphi
|
From: <ke...@us...> - 2010-04-23 08:59:25
|
Revision: 1275
http://phpfreechat.svn.sourceforge.net/phpfreechat/?rev=1275&view=rev
Author: kerphi
Date: 2010-04-23 08:59:19 +0000 (Fri, 23 Apr 2010)
Log Message:
-----------
Add a security on the delay calculation based on the ping value for slow connections
Modified Paths:
--------------
trunk/data/public/js/pfcclient.js
Modified: trunk/data/public/js/pfcclient.js
===================================================================
--- trunk/data/public/js/pfcclient.js 2010-04-13 11:19:11 UTC (rev 1274)
+++ trunk/data/public/js/pfcclient.js 2010-04-23 08:59:19 UTC (rev 1275)
@@ -1047,6 +1047,10 @@
if (d < delay) continue;
if (lastact > limit) delay = d;
}
+
+ // a security for very slow connections
+ if (this.ping*2 > delay) delay = this.ping*2;
+
return delay;
},
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|