|
|
@ -106,7 +106,7 @@ void livesync_tell( ot_hash * const info_hash, const ot_peer * const peer, const
|
|
|
|
stuck when there's not enough traffic to fill udp packets fast
|
|
|
|
stuck when there's not enough traffic to fill udp packets fast
|
|
|
|
enough */
|
|
|
|
enough */
|
|
|
|
void livesync_ticker( ) {
|
|
|
|
void livesync_ticker( ) {
|
|
|
|
if( ( g_now - livesync_lastpacket_time > LIVESYNC_MAXDELAY) &&
|
|
|
|
if( ( g_now - livesync_lastpacket_time > LIVESYNC_MAXDELAY) &&
|
|
|
|
( livesync_outbuffer_pos > livesync_outbuffer_start + sizeof( g_tracker_id ) ) )
|
|
|
|
( livesync_outbuffer_pos > livesync_outbuffer_start + sizeof( g_tracker_id ) ) )
|
|
|
|
livesync_issuepacket();
|
|
|
|
livesync_issuepacket();
|
|
|
|
}
|
|
|
|
}
|
|
|
|