BastliBridge

A bot framework bridgin multiple IM protocols, and mail
git clone git://xatko.vsos.ethz.ch/BastliBridge.git
Log | Files | Refs | Submodules

commit 066ad8201fe75dcf54567ae5682e75061645998b
parent 5020f0ee56c205532a1b15c186d443e3207addec
Author: Dominik Schmidt <das1993@hotmail.com>
Date:   Thu, 14 Sep 2017 21:18:45 +0200

Don't reconnect the socket in the read() function of struct Telegram, but retrigger an Update.

Otherwise, we never even once receive a reply, the socket just times out again

Diffstat:
src/telegram.d | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/telegram.d b/src/telegram.d @@ -264,7 +264,7 @@ struct Telegram{ bool read(){ auto updates=response(sock); if(updates.isNull){ - reconnectSocket(sock); + triggerUpdates(); return true; } foreach(size_t i, update; updates){