equal
deleted
inserted
replaced
60 struct irc_net *net = arg; |
60 struct irc_net *net = arg; |
61 |
61 |
62 (void) conn; |
62 (void) conn; |
63 |
63 |
64 // log an error |
64 // log an error |
65 log_err_info(err, "irc_conn failed"); |
65 log_error(err, "irc_conn error"); |
66 |
66 |
67 // tear down state |
67 // tear down state |
68 irc_net_disconnect(net); |
68 irc_net_disconnect(net); |
69 |
69 |
70 // reconnect, either right away, or at the five-minute interval |
70 // reconnect, either right away, or at the five-minute interval |
71 if (irc_net_connect(net, (time(NULL) - net->connected_ts > IRC_NET_RECONNECT_INTERVAL), err)) |
71 if (irc_net_connect(net, (time(NULL) - net->connected_ts > IRC_NET_RECONNECT_INTERVAL), err)) |
72 log_err_info(err, "unable to reconnect"); |
72 log_error(err, "unable to reconnect"); |
73 } |
73 } |
74 |
74 |
75 /** |
75 /** |
76 * Our irc_conn has quit succesfully |
76 * Our irc_conn has quit succesfully |
77 */ |
77 */ |