fix end of packet
This commit is contained in:
parent
2829f66e9c
commit
7a0a6dcff4
2 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue