diff options
author | dequis <dx@dxzone.com.ar> | 2015-11-19 13:35:46 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2015-11-19 13:44:08 -0300 |
commit | e91ef973e98e8b2bb1f60f057a87d20994aac2a0 (patch) | |
tree | 2be59152ff6931d5b6fe94d0ee21fd7a8d5be346 /facebook/facebook-api.c | |
parent | f2ca48a6f79f41b9d1e29016e2cd6b9c5df39089 (diff) | |
download | bitlbee-facebook-e91ef973e98e8b2bb1f60f057a87d20994aac2a0.tar.gz bitlbee-facebook-e91ef973e98e8b2bb1f60f057a87d20994aac2a0.tar.bz2 bitlbee-facebook-e91ef973e98e8b2bb1f60f057a87d20994aac2a0.tar.xz |
fb_mqtt_write: fix unreachable input_add (priv->wev was always 0)
This was the only line that assigned anything to priv->wev, and it was
behind an (incorrect) condition that checked if it's nonzero.
That would have replaced priv->wev if the condition was ever true, but
since it wasn't, the only result is potentially delayed writes
(for example, filling the write buffer and only writing the rest a
minute later when pinging the server)
The new condition also checks the return value of fb_mqtt_cb_write(),
which is true if it should continue writing, or false otherwise.
Diffstat (limited to 'facebook/facebook-api.c')
0 files changed, 0 insertions, 0 deletions