Changeset c347a12
- Timestamp:
- 2013-08-02T20:55:16Z (11 years ago)
- Branches:
- master
- Children:
- fbcb481
- Parents:
- f93e01c
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
otr.c
rf93e01c rc347a12 271 271 /* regularly call otrl_message_poll */ 272 272 gint definterval = otrl_message_poll_get_default_interval(irc->otr->us); 273 b_timeout_add(definterval, ev_message_poll, irc->otr);273 irc->otr->timer = b_timeout_add(definterval, ev_message_poll, irc->otr); 274 274 275 275 return TRUE; … … 279 279 { 280 280 otr_t *otr = irc->otr; 281 b_event_remove(otr->timer); 281 282 otrl_userstate_free(otr->us); 282 283 if(otr->keygen) { … … 845 846 display_otr_message(opdata, ctx, 846 847 "unreadable encrypted message received"); 848 break; 849 case OTRL_MSGEVENT_RCVDMSG_FOR_OTHER_INSTANCE: 850 display_otr_message(opdata, ctx, 851 "OTR message for a different instance received"); 847 852 break; 848 853 case OTRL_MSGEVENT_RCVDMSG_MALFORMED: … … 1355 1360 otr_t *otr = data; 1356 1361 1357 otrl_message_poll(otr->us, &otr_ops, NULL); 1362 if(otr && otr->us) 1363 otrl_message_poll(otr->us, &otr_ops, NULL); 1358 1364 1359 1365 return TRUE; /* cycle timer */ -
otr.h
rf93e01c rc347a12 66 66 /* keygen jobs waiting to be sent to slave */ 67 67 kg_t *todo; 68 69 /* event timer for otrl_message_poll */ 70 gint timer; 68 71 } otr_t; 69 72
Note: See TracChangeset
for help on using the changeset viewer.