Changeset 4ac647d for protocols/jabber/s5bytestream.c
- Timestamp:
- 2008-08-04T14:21:49Z (16 years ago)
- Branches:
- master
- Children:
- 8661caa
- Parents:
- 8a90001
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/s5bytestream.c
r8a90001 r4ac647d 643 643 return jabber_bs_abort( bt, "Remote end closed connection" ); 644 644 645 if( tf->bytesread == 0 )646 tf->ft->started = time( NULL );647 648 645 tf->bytesread += ret; 646 647 if( tf->bytesread >= tf->ft->file_size ) 648 imcb_file_finished( tf->ft ); 649 649 650 650 tf->ft->write( tf->ft, tf->ft->buffer, ret ); … … 701 701 ASSERTSOCKOP( ret = send( tf->fd, buffer, len, 0 ), "Sending" ); 702 702 703 if( tf->byteswritten == 0 )704 tf->ft->started = time( NULL );705 706 703 tf->byteswritten += ret; 707 704 … … 710 707 return jabber_bs_abort( bt, "send() sent %d instead of %d (send buffer too big!)", ret, len ); 711 708 712 bt->tf->watch_out = b_input_add( tf->fd, GAIM_INPUT_WRITE, jabber_bs_send_can_write, bt ); 709 if( tf->byteswritten >= ft->file_size ) 710 imcb_file_finished( ft ); 711 else 712 bt->tf->watch_out = b_input_add( tf->fd, GAIM_INPUT_WRITE, jabber_bs_send_can_write, bt ); 713 713 714 714 return TRUE;
Note: See TracChangeset
for help on using the changeset viewer.