CLOUD: Fix Client

Cleanup in open()
This commit is contained in:
Alexander Tkachev 2016-06-16 19:33:23 +06:00
parent 5ac3adbd4f
commit 0def9c50a7

View file

@ -43,6 +43,12 @@ void Client::open(SDLNet_SocketSet set, TCPsocket socket) {
_state = READING_HEADERS;
_socket = socket;
_set = set;
_headers = "";
_method = "";
_path = "";
_query = "";
_anchor = "";
_handler = nullptr;
if (set) {
int numused = SDLNet_TCP_AddSocket(set, socket);
if (numused == -1) {