Bug 799675 ocurred when gtk-gnutella changed from Ultrapeer mode to Leaf mode, while handshaking a leaf node. This patch simply introduces a test in node_is_now_connected whether peermode.changed is true. If it is, it simply returns. There is no problem doing that, since gtkg will bye nodes it's connected to. I'm not sure, but I guess we should also test whether current_peermode is NODE_P_LEAF and NODE_IS_LEAF(n), that is, whether we were handshaking a leaf node and we are now to get into leaf mode. I would be glad if anyone with CVS write access could get this bug corrected applying the patch and making the other tests if they are really needed. (I guess they are needed, or at least, should be tested)
Thadeu Cascardo. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Gtk-gnutella-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel
