Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/jabglue.c @ 411:d35050efb5ac
Still need a temporization when connecting to a server
This reduces CPU consumption and fills the logs slower in debug mode.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 28 Aug 2005 10:38:10 +0200 |
parents | 82064124324d |
children | 48e7808c4191 |
comparison
equal
deleted
inserted
replaced
410:d39ba53fc38e | 411:d35050efb5ac |
---|---|
194 usleep(10000); | 194 usleep(10000); |
195 return; | 195 return; |
196 } | 196 } |
197 | 197 |
198 if (jc && jc->state == JCONN_STATE_CONNECTING) { | 198 if (jc && jc->state == JCONN_STATE_CONNECTING) { |
199 usleep(75000); | |
199 jab_start(jc); | 200 jab_start(jc); |
200 return; | 201 return; |
201 } | 202 } |
202 | 203 |
203 jab_poll(jc, 50); | 204 jab_poll(jc, 50); |