Mercurial > pidgin
diff src/protocols/simple/simple.c @ 12689:e893563d965d
[gaim-migrate @ 15032]
Fix another crash because a callback was happening after the account was disconnected. I wonder whether the sip->listenfd should be also closed.
committer: Tailor Script <tailor@pidgin.im>
| author | Daniel Atallah <daniel.atallah@gmail.com> |
|---|---|
| date | Tue, 03 Jan 2006 04:44:08 +0000 |
| parents | 5f65a0cca87c |
| children | d5b8f4dc1622 |
line wrap: on
line diff
--- a/src/protocols/simple/simple.c Tue Jan 03 01:25:06 2006 +0000 +++ b/src/protocols/simple/simple.c Tue Jan 03 04:44:08 2006 +0000 @@ -1257,7 +1257,7 @@ sip->listenport = ntohs(addr.sin_port); sip->listenfd = sip->fd; - gaim_input_add(sip->fd, GAIM_INPUT_READ, simple_udp_process, sip->gc); + sip->listenpa = gaim_input_add(sip->fd, GAIM_INPUT_READ, simple_udp_process, sip->gc); sip->serveraddr.sin_family = AF_INET; sip->serveraddr.sin_port = htons(port);
