Mercurial > hg > rlgwebd
comparison rlgwebd.js @ 62:7793ad53b90f
rlgwebd.js: fix failure to respond.
The codepath for a watcher requesting to quit did not lead to any
response being sent.
author | John "Elwin" Edwards <elwin@sdf.org> |
---|---|
date | Wed, 20 Jun 2012 07:37:15 -0700 |
parents | 31bb3cf4f25f |
children | e3082fd06520 |
comparison
equal
deleted
inserted
replaced
61:071ec6b1ec03 | 62:7793ad53b90f |
---|---|
718 } | 718 } |
719 client.quit(); | 719 client.quit(); |
720 // Give things some time to happen. | 720 // Give things some time to happen. |
721 if (client instanceof Player) | 721 if (client instanceof Player) |
722 setTimeout(readFeed, 200, client, res); | 722 setTimeout(readFeed, 200, client, res); |
723 else | |
724 readFeed(client, res); | |
723 return; | 725 return; |
724 } | 726 } |
725 | 727 |
726 function findClient(formdata, playersOnly) { | 728 function findClient(formdata, playersOnly) { |
727 if (typeof(formdata) != "object") | 729 if (typeof(formdata) != "object") |