diff options
author | dequis <dx@dxzone.com.ar> | 2015-04-03 01:17:13 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2015-04-03 01:17:13 -0300 |
commit | 8499f8093ec116a102bcff0fb5633ae245310392 (patch) | |
tree | f5cade3689b7dc70731a9ef548e401b823601adb /facebook/facebook.c | |
parent | cf3e226c124028e19987c29ea882038fc449f9d4 (diff) | |
download | bitlbee-facebook-8499f8093ec116a102bcff0fb5633ae245310392.tar.gz bitlbee-facebook-8499f8093ec116a102bcff0fb5633ae245310392.tar.bz2 bitlbee-facebook-8499f8093ec116a102bcff0fb5633ae245310392.tar.xz |
Reset stoken when getting ERROR_QUEUE_NOT_FOUND, to create a new one
Simpler and more verbose version of my other patch which silently
created a new queue - this will show up as a reconnection and should
make it obvious if an infinite loop happens. jgeboski's idea, not mine.
Diffstat (limited to 'facebook/facebook.c')
-rw-r--r-- | facebook/facebook.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/facebook/facebook.c b/facebook/facebook.c index 8571324..c25232e 100644 --- a/facebook/facebook.c +++ b/facebook/facebook.c @@ -535,6 +535,10 @@ static void fb_logout(struct im_connection *ic) { fb_data_t *fata = ic->proto_data; + if (fata->api->stoken == NULL) { + set_reset(&ic->acc->set, "stoken"); + } + fb_api_disconnect(fata->api); fb_data_free(fata); } |