From: Steinar H. Gunderson Date: Sun, 7 Apr 2013 19:10:20 +0000 (+0200) Subject: Some fixes to issues that could cause client hangs. X-Git-Tag: 1.0.0~182 X-Git-Url: https://git.sesse.net/?p=cubemap;a=commitdiff_plain;h=43be6b6e71a38923e923f33daa1fd1172bcdd539;ds=sidebyside Some fixes to issues that could cause client hangs. --- 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!