Update of /cvsroot/gaim/gaim/src/protocols/napster
In directory usw-pr-cvs1:/tmp/cvs-serv12018/protocols/napster
Modified Files:
napster.c
Log Message:
why?
Index: napster.c
===================================================================
RCS file: /cvsroot/gaim/gaim/src/protocols/napster/napster.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- napster.c 2001/11/06 23:58:23 1.13
+++ napster.c 2001/11/10 01:22:31 1.14
@@ -402,15 +402,21 @@
static void nap_login_connect(gpointer data, gint source, GaimInputCondition cond)
{
struct gaim_connection *gc = data;
- struct nap_data *ndata = gc->proto_data;
+ struct nap_data *ndata;
char buf[NAP_BUF_LEN];
+ if (!g_slist_find(connections, gc)) {
+ close(source);
+ return;
+ }
+
if (source < 0) {
hide_login_progress(gc, "Unable to connect");
signoff(gc);
return;
}
+ ndata = gc->proto_data;
if (ndata->fd != source)
ndata->fd = source;
|