From c9c78e191dd71bacd769bbeccd58b80e4376184b Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Sat, 5 Aug 2017 20:07:10 +0500 Subject: 2017-08-05 --- src/Network.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/Network.cpp') diff --git a/src/Network.cpp b/src/Network.cpp index 6cd9baa..47ae751 100644 --- a/src/Network.cpp +++ b/src/Network.cpp @@ -5,7 +5,6 @@ Network::Network(std::string address, unsigned short port) { socket = new Socket(address, port); } catch (std::exception &e) { LOG(WARNING) << "CONNECT FAULT"; - delete socket; throw; } @@ -13,7 +12,6 @@ Network::Network(std::string address, unsigned short port) { stream = new StreamSocket(socket); } catch (std::exception &e) { LOG(WARNING) << "NOT STREAMED"; - LOG(FATAL) << e.what(); } } -- cgit v1.2.3