diff --git a/client/web_socket_wrapper.cpp b/client/web_socket_wrapper.cpp index 244512f..100ce73 100644 --- a/client/web_socket_wrapper.cpp +++ b/client/web_socket_wrapper.cpp @@ -24,11 +24,6 @@ Web_socket_wrapper::Web_socket_wrapper(const QUrl &url, QObject *parent) m_web_socket->open(url); } -Web_socket_wrapper::~Web_socket_wrapper() -{ - close(); -} - void Web_socket_wrapper::send_command(Command c, size_t id) { json j; diff --git a/client/web_socket_wrapper.hpp b/client/web_socket_wrapper.hpp index 9870d02..4e66fb3 100644 --- a/client/web_socket_wrapper.hpp +++ b/client/web_socket_wrapper.hpp @@ -35,7 +35,7 @@ class Web_socket_wrapper : public QObject public: explicit Web_socket_wrapper(const QUrl &url, QObject *parent = nullptr); - ~Web_socket_wrapper(); + void send_command(Command c, size_t id = 0); void send_command(Command c, QString val); void send_event(Event e, size_t id);