summaryrefslogtreecommitdiff
path: root/trackerlogic.c
diff options
context:
space:
mode:
Diffstat (limited to 'trackerlogic.c')
-rw-r--r--trackerlogic.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/trackerlogic.c b/trackerlogic.c
index 5716207..f2691a5 100644
--- a/trackerlogic.c
+++ b/trackerlogic.c
@@ -60,11 +60,6 @@ ot_torrent *add_peer_to_torrent( ot_hash *hash, ot_peer *peer WANT_SYNC_PARAM(
60 return NULL; 60 return NULL;
61 } 61 }
62 62
63#ifdef WANT_SYNC_LIVE
64 if( !from_changeset )
65 livesync_tell( hash, peer, PEER_FLAG_LEECHING );
66#endif
67
68 if( !exactmatch ) { 63 if( !exactmatch ) {
69 /* Create a new torrent entry, then */ 64 /* Create a new torrent entry, then */
70 memmove( &torrent->hash, hash, sizeof( ot_hash ) ); 65 memmove( &torrent->hash, hash, sizeof( ot_hash ) );
@@ -109,6 +104,11 @@ ot_torrent *add_peer_to_torrent( ot_hash *hash, ot_peer *peer WANT_SYNC_PARAM(
109 memmove( peer_dest, peer, sizeof( ot_peer ) ); 104 memmove( peer_dest, peer, sizeof( ot_peer ) );
110 torrent->peer_list->peer_count++; 105 torrent->peer_list->peer_count++;
111 106
107#ifdef WANT_SYNC_LIVE
108 if( !from_changeset )
109 livesync_tell( hash, peer, PEER_FLAG_LEECHING );
110#endif
111
112 if( OT_FLAG( peer ) & PEER_FLAG_COMPLETED ) 112 if( OT_FLAG( peer ) & PEER_FLAG_COMPLETED )
113 torrent->peer_list->down_count++; 113 torrent->peer_list->down_count++;
114 114