зеркало из https://github.com/mozilla/pjs.git
Bug 139057 - fix chatzilla's response to certain pings
patch by twpol@aol.com r=rginda
This commit is contained in:
Родитель
e1f53da40f
Коммит
7eded02cf7
|
@ -1350,7 +1350,14 @@ function serv_ping (e)
|
|||
{
|
||||
|
||||
/* non-queued send, so we can calcualte lag */
|
||||
this.connection.sendData ("PONG :" + e.meat + "\n");
|
||||
if (e.meat)
|
||||
{
|
||||
this.connection.sendData ("PONG :" + e.meat + "\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
this.connection.sendData ("PONG :" + e.params[e.params.length - 1] + "\n");
|
||||
}
|
||||
this.connection.sendData ("PING :LAGTIMER\n");
|
||||
this.lastPing = this.lastPingSent = new Date();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче