Mercurial > pidgin.yaz
comparison libpurple/protocols/yahoo/yahoo.c @ 26231:775752f3e0db
dont initiate p2p connection with a peer, while we are waiting for another peer to conenct to us
author | Sulabh Mahajan <sulabh@soc.pidgin.im> |
---|---|
date | Sat, 27 Sep 2008 15:30:10 +0000 |
parents | 7446f0597150 |
children | 47a1a94b479b |
comparison
equal
deleted
inserted
replaced
26230:7446f0597150 | 26231:775752f3e0db |
---|---|
2635 struct yahoo_data *yd = gc->proto_data; | 2635 struct yahoo_data *yd = gc->proto_data; |
2636 struct yahoo_p2p_data *p2p_data; | 2636 struct yahoo_p2p_data *p2p_data; |
2637 | 2637 |
2638 f = yahoo_friend_find(gc, who); | 2638 f = yahoo_friend_find(gc, who); |
2639 account = purple_connection_get_account(gc); | 2639 account = purple_connection_get_account(gc); |
2640 | |
2641 /* Do not send invitation if already listening for other connection */ | |
2642 if(yd->yahoo_local_p2p_server_fd) | |
2643 return; | |
2640 | 2644 |
2641 /* One shouldn't try to connect to self */ | 2645 /* One shouldn't try to connect to self */ |
2642 if( strcmp(purple_normalize(account, purple_account_get_username(account)), who) == 0) | 2646 if( strcmp(purple_normalize(account, purple_account_get_username(account)), who) == 0) |
2643 return; | 2647 return; |
2644 | 2648 |