| 292 |
292 |
| 293 gaim_xfer_unref(xfer); |
293 gaim_xfer_unref(xfer); |
| 294 |
294 |
| 295 if (sock < 0) { |
295 if (sock < 0) { |
| 296 gaim_notify_error(gc, NULL, _("File Transfer Failed"), |
296 gaim_notify_error(gc, NULL, _("File Transfer Failed"), |
| 297 _("Gaim could not open a listening port.")); |
297 _("Could not open a listening port.")); |
| 298 gaim_xfer_cancel_local(xfer); |
298 gaim_xfer_cancel_local(xfer); |
| 299 return; |
299 return; |
| 300 } |
300 } |
| 301 |
301 |
| 302 xd->fd = sock; |
302 xd->fd = sock; |
| 333 xd->listen_data = gaim_network_listen_range(0, 0, SOCK_STREAM, |
333 xd->listen_data = gaim_network_listen_range(0, 0, SOCK_STREAM, |
| 334 irc_dccsend_network_listen_cb, xfer); |
334 irc_dccsend_network_listen_cb, xfer); |
| 335 if (xd->listen_data == NULL) { |
335 if (xd->listen_data == NULL) { |
| 336 gaim_xfer_unref(xfer); |
336 gaim_xfer_unref(xfer); |
| 337 gaim_notify_error(gc, NULL, _("File Transfer Failed"), |
337 gaim_notify_error(gc, NULL, _("File Transfer Failed"), |
| 338 _("Gaim could not open a listening port.")); |
338 _("Could not open a listening port.")); |
| 339 gaim_xfer_cancel_local(xfer); |
339 gaim_xfer_cancel_local(xfer); |
| 340 } |
340 } |
| 341 |
341 |
| 342 } |
342 } |
| 343 |
343 |