Mercurial > pidgin.yaz
comparison src/protocols/oscar/oscar.c @ 13256:7ead7b8aea63
[gaim-migrate @ 15622]
Remove the latency code because
1. It uses sleep, which would block everything if it actually worked
2. It doesn't work because we don't use AIM_TX_IMMEDIATE instead of
AIM_TX_QUEUED
3. I'm going to be getting rid of AIM_TX_IMMEDIATE and AIM_TX_QUEUED
and will be using a GaimCircBuffer for transmission at all times
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 12 Feb 2006 22:21:08 +0000 |
parents | e9802db22b06 |
children | b08f8f3c9197 |
comparison
equal
deleted
inserted
replaced
13255:f280bf585fb3 | 13256:7ead7b8aea63 |
---|---|
5740 currentavg, maxavg, | 5740 currentavg, maxavg, |
5741 alert, clear, | 5741 alert, clear, |
5742 limit, disconnect, | 5742 limit, disconnect, |
5743 windowsize); | 5743 windowsize); |
5744 | 5744 |
5745 /* XXX fix these values */ | 5745 if (code == AIM_RATE_CODE_LIMIT) |
5746 if (code == AIM_RATE_CODE_CHANGE) { | 5746 { |
5747 if (currentavg >= clear) | |
5748 aim_conn_setlatency(fr->conn, 0); | |
5749 } else if (code == AIM_RATE_CODE_WARNING) { | |
5750 aim_conn_setlatency(fr->conn, windowsize/4); | |
5751 } else if (code == AIM_RATE_CODE_LIMIT) { | |
5752 gaim_notify_error(sess->aux_data, NULL, _("Rate limiting error."), | 5747 gaim_notify_error(sess->aux_data, NULL, _("Rate limiting error."), |
5753 _("The last action you attempted could not be " | 5748 _("The last action you attempted could not be " |
5754 "performed because you are over the rate limit. " | 5749 "performed because you are over the rate limit. " |
5755 "Please wait 10 seconds and try again.")); | 5750 "Please wait 10 seconds and try again.")); |
5756 aim_conn_setlatency(fr->conn, windowsize/2); | |
5757 } else if (code == AIM_RATE_CODE_CLEARLIMIT) { | |
5758 aim_conn_setlatency(fr->conn, 0); | |
5759 } | 5751 } |
5760 | 5752 |
5761 return 1; | 5753 return 1; |
5762 } | 5754 } |
5763 | 5755 |