Start idle at 1 min not 0 min and Probable description of service 0x07d1. soc.2008.yahoo

Sun, 08 Jun 2008 21:08:48 +0000

author
Sulabh Mahajan <sulabh@pidgin.im>
date
Sun, 08 Jun 2008 21:08:48 +0000
branch
soc.2008.yahoo
changeset 23674
f21b1f0f5717
parent 23673
b4005ecc8248
child 23675
6c5ffe34cb35

Start idle at 1 min not 0 min and Probable description of service 0x07d1.

libpurple/protocols/yahoo/yahoo.c file | annotate | diff | comparison | revisions
libpurple/protocols/yahoo/yahoo_packet.h file | annotate | diff | comparison | revisions
--- a/libpurple/protocols/yahoo/yahoo.c	Sun Jun 08 17:40:04 2008 +0000
+++ b/libpurple/protocols/yahoo/yahoo.c	Sun Jun 08 21:08:48 2008 +0000
@@ -215,7 +215,7 @@
 			if (f->status == YAHOO_STATUS_IDLE) {
 				/* Idle may have already been set in a more precise way in case 137 */
 				if (f->idle == 0)
-					f->idle = time(NULL);
+					f->idle = time(NULL) - 60;	/*Start idle at 1 min*/
 			} else
 				f->idle = 0;
 
--- a/libpurple/protocols/yahoo/yahoo_packet.h	Sun Jun 08 17:40:04 2008 +0000
+++ b/libpurple/protocols/yahoo/yahoo_packet.h	Sun Jun 08 21:08:48 2008 +0000
@@ -109,7 +109,7 @@
 	YAHOO_SERVICE_LIST_15 = 0xf1,
 	YAHOO_SERVICE_WEBLOGIN = 0x0226,
 	YAHOO_SERVICE_SMS_MSG = 0x02ea
-	/*YAHOO_SERVICE_DISCONNECT = 0x07d1 Sent by server asking us to disconnect*/
+	/*YAHOO_SERVICE_DISCONNECT = 0x07d1 Server forces us to disconnect. Is sent with TCP FIN flag set*/
 };
 
 struct yahoo_pair {

mercurial