- Timestamp:
- Mar 29, 2009, 7:41:30 PM (15 years ago)
- Branches:
- owl
- Children:
- db654df
- Parents:
- 6fdef66
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
zephyr.c
r64b6449 r6d7e6c6 26 26 return(1); 27 27 } 28 owl_zephyr_process_events(NULL); 28 29 #endif 29 30 return(0); … … 35 36 #ifdef HAVE_LIBZEPHYR 36 37 unsuball(); 38 owl_zephyr_process_events(NULL); 37 39 ZClosePort(); 38 40 #endif … … 83 85 owl_free(subs[i].zsub_recipient); 84 86 } 87 owl_zephyr_process_events(NULL); 85 88 return ret; 86 89 } … … 173 176 return(-1); 174 177 } 178 owl_zephyr_process_events(NULL); 175 179 return(0); 176 180 #else … … 237 241 } 238 242 243 owl_zephyr_process_events(NULL); 244 239 245 return(ret); 240 246 #else … … 270 276 return(-2); 271 277 } 278 owl_zephyr_process_events(NULL); 272 279 return(0); 273 280 #else … … 291 298 return(-2); 292 299 } 300 owl_zephyr_process_events(NULL); 293 301 return(0); 294 302 #else … … 460 468 owl_free(notice.z_message); 461 469 ZFreeNotice(¬ice); 470 owl_zephyr_process_events(NULL); 462 471 if (ret!=ZERR_NONE) { 463 472 owl_function_error("Error sending zephyr"); … … 473 482 Code_t send_zephyr_helper(ZNotice_t *notice, char *buf, int len, int wait) 474 483 { 475 return(ZSendPacket(buf, len, 0)); 484 int ret; 485 ret=ZSendPacket(buf, len, 0); 486 owl_zephyr_process_events(NULL); 487 return(ret); 476 488 } 477 489 #endif … … 481 493 #ifdef HAVE_LIBZEPHYR 482 494 send_zephyr("PING", "", "MESSAGE", "PERSONAL", to, ""); 495 owl_zephyr_process_events(NULL); 483 496 #endif 484 497 } … … 622 635 ZResetAuthentication(); 623 636 ret=ZLocateUser(user,&numlocs,auth?ZAUTH:ZNOAUTH); 637 owl_zephyr_process_events(NULL); 624 638 if (ret != ZERR_NONE) { 625 639 return(owl_sprintf("Error locating user %s\n", user)); … … 647 661 owl_free(myuser); 648 662 } 663 owl_zephyr_process_events(NULL); 649 664 return(out); 650 665 #else … … 750 765 751 766 ret=ZSetLocation(eset); 767 owl_zephyr_process_events(NULL); 752 768 if (ret != ZERR_NONE) { 753 769 /* owl_function_makemsg("Error setting location: %s", error_message(ret)); */ … … 763 779 ZResetAuthentication(); 764 780 ret=ZUnsetLocation(); 781 owl_zephyr_process_events(NULL); 765 782 if (ret != ZERR_NONE) { 766 783 /* owl_function_makemsg("Error unsetting location: %s", error_message(ret)); */ … … 849 866 int tmpbufflen; 850 867 char *tmpbuff; 868 owl_zephyr_process_events(NULL); 851 869 tmpbuff = owl_sprintf("<%s,%s,%s>\n%s", sub.zsub_class, sub.zsub_classinst, sub.zsub_recipient, out); 852 870 tmpbufflen = strlen(tmpbuff) + 1; … … 870 888 871 889 ZFlushSubscriptions(); 890 owl_zephyr_process_events(NULL); 872 891 return(out); 873 892 #else … … 889 908 #ifdef HAVE_LIBZEPHYR 890 909 ZInitLocationInfo(host, val); 910 owl_zephyr_process_events(NULL); 891 911 #endif 892 912 }
Note: See TracChangeset
for help on using the changeset viewer.