From 3009200b76dec678cd58e114b30088ab8625a44a Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 8 Oct 2014 11:45:32 +0400 Subject: [PATCH] fixed crash on logout --- Telegram/SourceFiles/mtproto/mtpSessionImpl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/mtproto/mtpSessionImpl.h b/Telegram/SourceFiles/mtproto/mtpSessionImpl.h index 3c0ac79898..1f5e4b8805 100644 --- a/Telegram/SourceFiles/mtproto/mtpSessionImpl.h +++ b/Telegram/SourceFiles/mtproto/mtpSessionImpl.h @@ -52,7 +52,7 @@ public: void operator()(mtpRequestId requestId, const mtpPrime *from, const mtpPrime *end) const { _dc->setConnectionInited(); - return (*_ondone)(requestId, from, end); + if (_ondone) (*_ondone)(requestId, from, end); } private: