From 43be6b6e71a38923e923f33daa1fd1172bcdd539 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 7 Apr 2013 21:10:20 +0200 Subject: [PATCH] Some fixes to issues that could cause client hangs. --- server.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server.cpp b/server.cpp index 855e21c..54e6b5e 100644 --- a/server.cpp +++ b/server.cpp @@ -231,6 +231,8 @@ void Server::add_client_from_serialized(const ClientProto &client) perror("epoll_ctl(EPOLL_CTL_ADD)"); exit(1); } + + process_client(&clients[client.sock()]); } void Server::add_stream(const string &stream_id) @@ -488,7 +490,7 @@ int Server::parse_request(Client *client) } client->stream_id = request_tokens[1]; - client->stream = streams[client->stream_id]; + client->stream = find_stream(client->stream_id); client->request.clear(); return 200; // OK! -- 2.39.2