# HG changeset patch # User Daniel Atallah # Date 1137526125 0 # Node ID a05fbd9dcc31366563820e578bd2bf0ba78b82fd # Parent a85c8c11bfab3f203321e829083d9b46810220e1 [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. committer: Tailor Script diff -r a85c8c11bfab -r a05fbd9dcc31 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);