From 93630cbf453a3bc626a956e8eb23a2df123ef120 Mon Sep 17 00:00:00 2001 From: APTX Date: Sun, 6 Sep 2009 16:40:58 +0200 Subject: [PATCH] - Add transition to the error state from the receive state. Most errors come from the receive state... --- client.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/client.cpp b/client.cpp index fdd8082..151d856 100644 --- a/client.cpp +++ b/client.cpp @@ -103,6 +103,7 @@ qDebug() << "Api instance init!"; idleTimeoutState->addTransition(this, SIGNAL(startSending()), sendState); recieveState->addTransition(this, SIGNAL(authenticated()), authenticatingState); + recieveFailState->addTransition(this, SIGNAL(connectionError()), errorState); recieveState->addTransition(connectedHistoryState); @@ -156,8 +157,6 @@ Client::~Client() socket->waitForBytesWritten(5); } - if (m_hashInstance) - delete m_hashInstance; } QString Client::host() const @@ -609,14 +608,6 @@ void Client::destroy() m_instance = 0; } -Hash *Client::hashInstance() -{ - if (!m_hashInstance) - m_hashInstance = new Hash; - - return m_hashInstance; -} - void Client::connect() { qDebug() << "Conneting"; -- 2.52.0