# HG changeset patch # User Daniel Atallah # Date 1137526125 0 # Node ID 36e9d07f56c3fdfd2aa175e2dff88cb7e6949a11 # Parent 26da900b6b543f98d1de16ea8c99a9f31ec8f92e [gaim-migrate @ 15271] nosnilmot noticed that I was passing the wrong variable to gaim_network_listen_range(). This reminded me to add a comment that I mean to earlier. diff -r 26da900b6b54 -r 36e9d07f56c3 src/protocols/oscar/oscar.c --- a/src/protocols/oscar/oscar.c Tue Jan 17 18:36:29 2006 +0000 +++ b/src/protocols/oscar/oscar.c Tue Jan 17 19:28:45 2006 +0000 @@ -1571,6 +1571,8 @@ dim = oscar_direct_im_find(od, who); if (dim) { + /* TODO: we need to somehow not do this if we're waiting + for the gaim_network_listen_range() call to finish */ if (!(dim->connected)) { /* We'll free the old, unconnected dim, and start over */ oscar_direct_im_disconnect(od, dim); gaim_debug_info("oscar", @@ -1588,7 +1590,8 @@ dim_l->dim = dim; dim_l->cookie = cookie; - if(!gaim_network_listen_range(5190, 5199, SOCK_STREAM, oscar_direct_im_listen_cb, dim)) { + if(!gaim_network_listen_range(5190, 5199, SOCK_STREAM, + oscar_direct_im_listen_cb, dim_l)) { gaim_notify_error(gc, NULL, _("Unable to open Direct IM"), NULL); oscar_direct_im_destroy(od, dim); g_free(dim_l);