Mercurial > pidgin
comparison libpurple/protocols/bonjour/jabber.c @ 17541:a62a695ccfb5
Improve Bonjour error handling when there are errors "connecting".
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Wed, 06 Jun 2007 03:22:06 +0000 |
parents | bca2780f7669 |
children | 496d007a8912 |
comparison
equal
deleted
inserted
replaced
17540:eae7a411e3a1 | 17541:a62a695ccfb5 |
---|---|
666 BonjourBuddy *bb = NULL; | 666 BonjourBuddy *bb = NULL; |
667 GSList *buddies; | 667 GSList *buddies; |
668 GSList *l; | 668 GSList *l; |
669 | 669 |
670 /* Close the server socket and remove all the watcher */ | 670 /* Close the server socket and remove all the watcher */ |
671 close(data->socket); | 671 if (data->socket >= 0) |
672 purple_input_remove(data->watcher_id); | 672 close(data->socket); |
673 if (data->watcher_id > 0) | |
674 purple_input_remove(data->watcher_id); | |
673 | 675 |
674 /* Close all the sockets and remove all the watchers after sending end streams */ | 676 /* Close all the sockets and remove all the watchers after sending end streams */ |
675 if (data->account->gc != NULL) | 677 if (data->account->gc != NULL) |
676 { | 678 { |
677 buddies = purple_find_buddies(data->account, data->account->username); | 679 buddies = purple_find_buddies(data->account, data->account->username); |