diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2006-01-19 23:24:25 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2006-01-19 23:24:25 +0100 |
commit | b8c2ace5985879a4c13d366756eb5e444a240ec9 (patch) | |
tree | af37ccc0f724e1aee81d5f363a45e92161f5ee65 /protocols/oscar/rxqueue.c | |
parent | 5424c76c7813f82e2f98546f6a46b73d80181877 (diff) | |
parent | 2fa825ba7c79a0ab4ed9a534865974e918b49100 (diff) |
Die, bug, die! (And apparently bzr suddenly felt like merging some old commits...)
Diffstat (limited to 'protocols/oscar/rxqueue.c')
-rw-r--r-- | protocols/oscar/rxqueue.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/protocols/oscar/rxqueue.c b/protocols/oscar/rxqueue.c index d8adaa73..6e8dd29c 100644 --- a/protocols/oscar/rxqueue.c +++ b/protocols/oscar/rxqueue.c @@ -352,8 +352,15 @@ int aim_get_command(aim_session_t *sess, aim_conn_t *conn) if (conn->fd == -1) return -1; /* its a aim_conn_close()'d connection */ - if (conn->fd < 3) /* can happen when people abuse the interface */ + /* KIDS, THIS IS WHAT HAPPENS IF YOU USE CODE WRITTEN FOR GUIS IN A DAEMON! + + And wouldn't it make sense to return something that prevents this function + from being called again IMMEDIATELY (and making the program suck up all + CPU time)?... + + if (conn->fd < 3) return 0; + */ if (conn->status & AIM_CONN_STATUS_INPROGRESS) return aim_conn_completeconnect(sess, conn); |