fix end of packet

This commit is contained in:
liranbg 2014-10-14 03:33:10 +03:00
parent 2829f66e9c
commit 7a0a6dcff4
2 changed files with 6 additions and 2 deletions

View file

@ -212,7 +212,11 @@ void jceSSLClient::readIt()
emit statusBar->progressHasPacket(10); emit statusBar->progressHasPacket(10);
if (tempPacket.contains("Go_To_system_After_Login.htm") || tempPacket.contains("</html>")) if ((tempPacket.mid(tempPacket.length()-7,7) == ".HTM-->")
|| (tempPacket.mid(tempPacket.length()-7,7) == ".htm-->")
|| tempPacket.contains("</html>")
)
{ {
//we have the last packet. (uses only in login first step //we have the last packet. (uses only in login first step
recieveLastPacket = true; recieveLastPacket = true;

View file

@ -1,7 +1,7 @@
#ifndef JCESSLCLIENT_H #ifndef JCESSLCLIENT_H
#define JCESSLCLIENT_H #define JCESSLCLIENT_H
#include <QObject> #include <String>
#include <QSslSocket> #include <QSslSocket>
#include <QThread> #include <QThread>
#include <QEventLoop> #include <QEventLoop>