1
0
forked from bip/bip

tonight, guinness is my inspiration

This commit is contained in:
nohar 2005-05-23 22:51:33 +00:00
parent abd979fb01
commit a5739325b6
2 changed files with 10 additions and 2 deletions

View File

@ -226,6 +226,7 @@ static int _write_socket(connection_t *cn, char *message)
} }
} while (count < 0 && } while (count < 0 &&
(errno == EAGAIN || errno == EINTR || errno == EINPROGRESS)); (errno == EAGAIN || errno == EINTR || errno == EINPROGRESS));
if (count <= 0 && tcount > 0) if (count <= 0 && tcount > 0)
fatal("shit happens errno:%d count:%d tcount:%d (%s)\n", errno, fatal("shit happens errno:%d count:%d tcount:%d (%s)\n", errno,
count, tcount, message); count, tcount, message);

View File

@ -1912,8 +1912,15 @@ void irc_main(connection_t *inc, list_t *ll)
list_add_last(&reconnectl, link); list_add_last(&reconnectl, link);
if (link->l_clientc) { if (link->l_clientc) {
int i; int i;
for (i = 0; i < link->l_clientc; i++) for (i = 0; i < link->l_clientc; i++) {
list_add_last(&connl, CONN(link->l_clientv[i])); struct link_client *c;
c = link->l_clientv[i];
list_add_last(&connl, CONN(c));
if (TYPE(c) == IRC_TYPE_LOGING_CLIENT)
list_add_last(&connecting_c, c);
if (TYPE(c) == IRC_TYPE_CLIENT)
list_add_last(&connected_c, c);
}
} }
} }
if (conf_error && reloading_client) { if (conf_error && reloading_client) {