Changeset ac4999a
- Timestamp:
- 2015-03-19T16:02:31Z (10 years ago)
- Parents:
- 65418c59
- Location:
- protocols/msn
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/msn/gw.c
r65418c59 rac4999a 70 70 71 71 gw->waiting = FALSE; 72 gw->polling = FALSE; 72 73 73 74 if (!gw->open) { … … 110 111 b_event_remove(gw->poll_timeout); 111 112 } 112 gw->poll_timeout = b_timeout_add(500 0, msn_gw_poll_timeout, gw);113 gw->poll_timeout = b_timeout_add(500, msn_gw_poll_timeout, gw); 113 114 114 115 } … … 125 126 body = (char *) g_byte_array_free(gw->out, FALSE); 126 127 gw->out = g_byte_array_new(); 128 } 129 130 if (!bodylen && !args) { 131 args = "Action=poll&Lifespan=60"; 132 gw->polling = TRUE; 127 133 } 128 134 … … 172 178 if (!gw->open) { 173 179 msn_gw_open(gw); 174 } else if ( !gw->waiting) {180 } else if (gw->polling || !gw->waiting) { 175 181 msn_gw_dorequest(gw, NULL); 176 182 } -
protocols/msn/msn.h
r65418c59 rac4999a 141 141 gboolean open; 142 142 gboolean waiting; 143 gboolean polling; 143 144 }; 144 145
Note: See TracChangeset
for help on using the changeset viewer.