From 8499f8093ec116a102bcff0fb5633ae245310392 Mon Sep 17 00:00:00 2001 From: dequis Date: Fri, 3 Apr 2015 01:17:13 -0300 Subject: 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. --- facebook/facebook.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'facebook/facebook.c') 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); } -- cgit v1.2.3