changeset 25570:193093790ada

Start idle at 1 min not 0 min and Probable description of service 0x07d1.
author Sulabh Mahajan <sulabh@soc.pidgin.im>
date Sun, 08 Jun 2008 21:08:48 +0000
parents 9b16249bfbe6
children ef47df3e5dd4
files libpurple/protocols/yahoo/yahoo.c libpurple/protocols/yahoo/yahoo_packet.h
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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 {