CLOUD: Fix Client
Cleanup in open()
This commit is contained in:
parent
5ac3adbd4f
commit
0def9c50a7
1 changed files with 6 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue