]> andersk Git - libfaim.git/blobdiff - aim_rxqueue.c
- Thu Feb 8 02:31:25 UTC 2001
[libfaim.git] / aim_rxqueue.c
index a26648afa234719f637e9e440cd31f9a320bc390..6cc1806f53b1f5c34a66335359dc66f891f3f792 100644 (file)
@@ -6,6 +6,7 @@
  * aim_rxhandlers.c.
  */
 
+#define FAIM_INTERNAL
 #include <faim/aim.h> 
 
 #ifndef _WIN32
@@ -57,6 +58,9 @@ faim_export int aim_get_command(struct aim_session_t *sess, struct aim_conn_t *c
   if (!sess || !conn)
     return 0;
 
+  if (conn->fd == -1)
+    return -1; /* its a aim_conn_close()'d connection */
+
   if (conn->fd < 3)  /* can happen when people abuse the interface */
     return 0;
 
@@ -69,8 +73,10 @@ faim_export int aim_get_command(struct aim_session_t *sess, struct aim_conn_t *c
    */
   if (conn->type == AIM_CONN_TYPE_RENDEZVOUS) 
     return aim_get_command_rendezvous(sess, conn);
-  if (conn->type == AIM_CONN_TYPE_RENDEZVOUS_OUT) 
+  if (conn->type == AIM_CONN_TYPE_RENDEZVOUS_OUT) {
+    printf("out on fd %d\n", conn->fd);
     return 0; 
+  }
 
   /*
    * Read FLAP header.  Six bytes:
This page took 0.033269 seconds and 4 git commands to generate.