Changeset e59eec0
- Timestamp:
- 2015-04-10T17:10:41Z (10 years ago)
- Branches:
- master
- Children:
- 002fede
- Parents:
- cd5fdcf
- git-author:
- dequis <dx@…> (19-03-15 16:02:31)
- git-committer:
- dequis <dx@…> (10-04-15 17:10:41)
- Location:
- protocols/msn
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/msn/gw.c
rcd5fdcf re59eec0 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
rcd5fdcf re59eec0 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.