mirror of
https://github.com/bitinflow/server.git
synced 2026-03-13 21:45:54 +00:00
use random id for new clients
remove 'asdf' id used during testing
This commit is contained in:
@@ -225,10 +225,8 @@ server.on('connection', function(socket) {
|
|||||||
server.on('request', function(req, res) {
|
server.on('request', function(req, res) {
|
||||||
|
|
||||||
// generate new shit for client
|
// generate new shit for client
|
||||||
var id = 'asdf';
|
var id = rand_id();
|
||||||
//rand_id();
|
|
||||||
//
|
|
||||||
//
|
|
||||||
if (wait_list[id]) {
|
if (wait_list[id]) {
|
||||||
wait_list[id].forEach(function(waiting) {
|
wait_list[id].forEach(function(waiting) {
|
||||||
waiting.end();
|
waiting.end();
|
||||||
|
|||||||
Reference in New Issue
Block a user