Changeset 0356ae3
- Timestamp:
- 2006-05-13T22:30:51Z (19 years ago)
- Branches:
- master
- Children:
- 3f199fc
- Parents:
- 19ac9c5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
irc.c
r19ac9c5 r0356ae3 576 576 char line[IRC_MAX_LINE+1], *cs; 577 577 578 if( irc->quit ) 578 /* Don't try to write anything new anymore when shutting down. */ 579 if( irc->status == USTATUS_SHUTDOWN ) 579 580 return; 580 581 … … 605 606 606 607 if( irc->w_watch_source_id == 0 ) 607 irc->w_watch_source_id = b_input_add( irc->fd, GAIM_INPUT_WRITE, bitlbee_io_current_client_write, irc ); 608 { 609 /* If the buffer is empty we can probably write, so call the write event handler 610 immediately. If it returns TRUE, it should be called again, so add the event to 611 the queue. If it's FALSE, we emptied the buffer and saved ourselves some work 612 in the event queue. */ 613 if( bitlbee_io_current_client_write( irc, irc->fd, GAIM_INPUT_WRITE ) ) 614 irc->w_watch_source_id = b_input_add( irc->fd, GAIM_INPUT_WRITE, bitlbee_io_current_client_write, irc ); 615 } 608 616 609 617 return; -
irc.h
r19ac9c5 r0356ae3 61 61 char *sendbuffer; 62 62 char *readbuffer; 63 int quit;64 63 65 64 int sentbytes;
Note: See TracChangeset
for help on using the changeset viewer.