broadway: Allow reconnecting to a broadway page

This commit is contained in:
Alexander Larsson 2012-12-19 21:58:25 +01:00
parent 54714cb228
commit 9e65be6c48

View File

@ -800,12 +800,6 @@ start_input (HttpRequest *request, gboolean binary)
server = GDK_BROADWAY_SERVER (request->server);
if (server->input != NULL)
{
send_error (request, 409, "Input already handled");
return;
}
#ifdef DEBUG_WEBSOCKETS
g_print ("incoming request:\n%s\n", request->request->str);
#endif
@ -948,6 +942,13 @@ start_input (HttpRequest *request, gboolean binary)
proto_v7_plus = FALSE;
}
if (server->input != NULL)
{
broadway_input_free (server->input);
server->input = NULL;
}
input = g_new0 (BroadwayInput, 1);
input->server = request->server;