Adds latest migration results
This commit is contained in:
829 files changed
+35074
-70886
No files matched your search
@@ -5,8 +5,10 @@
|
||||
#include "client_connection.h"
|
||||
#include "logger.h"
|
||||
|
||||
#ifdef QT6_WEBSOCKETS_AVAILABLE
|
||||
#include <QtWebSockets/QWebSocket>
|
||||
#include <utility>
|
||||
#endif
|
||||
|
||||
using namespace LtsWebSocket;
|
||||
|
||||
@@ -17,10 +19,13 @@ ConnectionHandler::ConnectionHandler(QObject* parent)
|
||||
|
||||
ConnectionHandler::~ConnectionHandler()
|
||||
{
|
||||
#ifdef QT6_WEBSOCKETS_AVAILABLE
|
||||
for (auto connection : std::as_const(m_connections))
|
||||
connection->disconnect(this);
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef QT6_WEBSOCKETS_AVAILABLE
|
||||
bool ConnectionHandler::init(const QString& serviceName, unsigned short port)
|
||||
{
|
||||
if (m_server != nullptr)
|
||||
@@ -87,3 +92,4 @@ void ConnectionHandler::onNewConnection()
|
||||
<< socket->localPort();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
Reference in new issue
Block a user