X-Git-Url: https://jasonwoof.com/gitweb/?p=peach-cgt.git;a=blobdiff_plain;f=server.coffee;h=91250cbfc066b64e1f5f791c6afc6f6da8d07fea;hp=29b3e50c2a9ab9675f493e9ed8ca2d8cd80c0036;hb=2931445ceb51e471291c9a8fd90ffa0d67b3d801;hpb=f12edd687531576f662976ccb4d24a9f5cd42fd9 diff --git a/server.coffee b/server.coffee index 29b3e50..91250cb 100644 --- a/server.coffee +++ b/server.coffee @@ -143,9 +143,8 @@ answer_now = (game) -> queue = game.p2_queue game.p2_waiter = false game.p2_queue = [] - timeout 2000, -> # FIXME remove this delay for player 2 (just here to test lag handling) - waiter.writeHead 200, 'Content-Type': 'text/javascript' - waiter.end JSON.stringify queue + waiter.writeHead 200, 'Content-Type': 'text/javascript' + waiter.end JSON.stringify queue # this marks a game as "dirty" and makes sure there's exactly one timeout # that'll respond to any clients that are waiting, and now have messages.