summaryrefslogtreecommitdiff
path: root/ot_http.c
diff options
context:
space:
mode:
Diffstat (limited to 'ot_http.c')
-rw-r--r--ot_http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ot_http.c b/ot_http.c
index 8a0f069..68bf58a 100644
--- a/ot_http.c
+++ b/ot_http.c
@@ -488,7 +488,7 @@ static ssize_t http_handle_announce( const int64 client_socket, char *data ) {
488 len = remove_peer_from_torrent( hash, &peer, SUCCESS_HTTP_HEADER_LENGTH + static_outbuf, FLAG_TCP ); 488 len = remove_peer_from_torrent( hash, &peer, SUCCESS_HTTP_HEADER_LENGTH + static_outbuf, FLAG_TCP );
489 else { 489 else {
490 torrent = add_peer_to_torrent( hash, &peer WANT_SYNC_PARAM( 0 ) ); 490 torrent = add_peer_to_torrent( hash, &peer WANT_SYNC_PARAM( 0 ) );
491 if( !torrent || !( len = return_peers_for_torrent( hash, numwant, SUCCESS_HTTP_HEADER_LENGTH + static_outbuf, 1 ) ) ) HTTPERROR_500; 491 if( !torrent || !( len = return_peers_for_torrent( hash, numwant, SUCCESS_HTTP_HEADER_LENGTH + static_outbuf, FLAG_TCP ) ) ) HTTPERROR_500;
492 } 492 }
493 stats_issue_event( EVENT_ANNOUNCE, FLAG_TCP, len); 493 stats_issue_event( EVENT_ANNOUNCE, FLAG_TCP, len);
494 return len; 494 return len;