diff options
Diffstat (limited to 'ot_livesync.c')
| -rw-r--r-- | ot_livesync.c | 9 | 
1 files changed, 5 insertions, 4 deletions
| diff --git a/ot_livesync.c b/ot_livesync.c index f61f0ec..3cad121 100644 --- a/ot_livesync.c +++ b/ot_livesync.c | |||
| @@ -101,10 +101,11 @@ static void livesync_issuepacket( ) { | |||
| 101 | /* Inform live sync about whats going on. */ | 101 | /* Inform live sync about whats going on. */ | 
| 102 | void livesync_tell( ot_hash * const info_hash, const ot_peer * const peer ) { | 102 | void livesync_tell( ot_hash * const info_hash, const ot_peer * const peer ) { | 
| 103 | int i; | 103 | int i; | 
| 104 | for(i=0;i<20;i+=4) WRITE32(livesync_outbuffer_pos+=4,0,READ32(info_hash,i)); | 104 | for(i=0;i<20;i+=4) WRITE32(livesync_outbuffer_pos,i,READ32(info_hash,i)); | 
| 105 | WRITE32(livesync_outbuffer_pos+=4,0,READ32(peer,0)); | 105 | WRITE32(livesync_outbuffer_pos,20,READ32(peer,0)); | 
| 106 | WRITE32(livesync_outbuffer_pos+=4,0,READ32(peer,4)); | 106 | WRITE32(livesync_outbuffer_pos,24,READ32(peer,4)); | 
| 107 | 107 | livesync_outbuffer_pos += 28; | |
| 108 | |||
| 108 | if( livesync_outbuffer_pos >= livesync_outbuffer_highwater ) | 109 | if( livesync_outbuffer_pos >= livesync_outbuffer_highwater ) | 
| 109 | livesync_issuepacket(); | 110 | livesync_issuepacket(); | 
| 110 | } | 111 | } | 
