Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/telegramdesktop/tdesktop int…
Browse files Browse the repository at this point in the history
…o dev
  • Loading branch information
john-preston committed Mar 25, 2016
2 parents 599ede9 + 3e79d74 commit 9c7ac50
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Telegram/SourceFiles/mtproto/connection_auto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ void AutoConnection::requestFinished(QNetworkReply *reply) {
void AutoConnection::socketPacket(const char *packet, uint32 length) {
if (status == FinishedWork) return;

mtpBuffer data = TCPConnection::handleResponse(packet, length);
mtpBuffer data = AbstractTCPConnection::handleResponse(packet, length);
if (data.size() == 1) {
if (status == WaitingBoth) {
status = WaitingHttp;
Expand Down Expand Up @@ -326,7 +326,7 @@ QString AutoConnection::transport() const {
void AutoConnection::socketError(QAbstractSocket::SocketError e) {
if (status == FinishedWork) return;

TCPConnection::handleError(e, sock);
AbstractTCPConnection::handleError(e, sock);
if (status == WaitingBoth) {
status = WaitingHttp;
} else if (status == HttpReady) {
Expand Down
8 changes: 8 additions & 0 deletions Telegram/Telegram.pro
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ SOURCES += \
./SourceFiles/mtproto/facade.cpp \
./SourceFiles/mtproto/auth_key.cpp \
./SourceFiles/mtproto/connection.cpp \
./SourceFiles/mtproto/connection_abstract.cpp \
./SourceFiles/mtproto/connection_auto.cpp \
./SourceFiles/mtproto/connection_http.cpp \
./SourceFiles/mtproto/connection_tcp.cpp \
./SourceFiles/mtproto/core_types.cpp \
./SourceFiles/mtproto/dcenter.cpp \
./SourceFiles/mtproto/file_download.cpp \
Expand Down Expand Up @@ -209,6 +213,10 @@ HEADERS += \
./SourceFiles/mtproto/facade.h \
./SourceFiles/mtproto/auth_key.h \
./SourceFiles/mtproto/connection.h \
./SourceFiles/mtproto/connection_abstract.h \
./SourceFiles/mtproto/connection_auto.h \
./SourceFiles/mtproto/connection_http.h \
./SourceFiles/mtproto/connection_tcp.h \
./SourceFiles/mtproto/core_types.h \
./SourceFiles/mtproto/dcenter.h \
./SourceFiles/mtproto/file_download.h \
Expand Down

0 comments on commit 9c7ac50

Please sign in to comment.