[ekg2-commit] ekg2: protocol.c (HEAD) [peres]

CVS commit cvs w toxygen.net
Śro, 2 Maj 2007, 14:30:20 CEST


Module name:	ekg2
Changes by:	peres	2007-05-02 14:30:18

Modified files:
	protocol.c

Log message:
Oops, s->connected wasn't right.

Index: protocol.c
===================================================================
RCS file: /home/cvs/ekg2/ekg/protocol.c,v
diff -d -u -r1.124 -r1.125
--- protocol.c	1 May 2007 14:09:07 -0000	1.124
+++ protocol.c	2 May 2007 12:30:17 -0000	1.125
@@ -155,10 +155,12 @@
 
 	userlist_clear_status(s, NULL);
 
-	if (s && s->connected) {
-		s->last_conn = time(NULL);
-		s->connected = 0;
-		/* XXX notify ui */
+	if (s) {
+		if (s->connected) {
+			s->last_conn = time(NULL);
+			s->connected = 0;
+			/* XXX notify ui */
+		}
 		command_exec(NULL, s, "/session --unlock", 1);
 	}
 


Więcej informacji o liście dyskusyjnej ekg2-commit