mirror of
https://github.com/bitinflow/server.git
synced 2026-10-31 20:59:08 +00:00
fix processing queued requests
This commit is contained in:
1 parent
6afb75704a
commit
0bba03ccd2
2 files changed
+7
No files matched your search
@@ -135,6 +135,11 @@ Proxy.prototype.next_socket = function(cb) {
|
||||
self.sockets.push(sock);
|
||||
}
|
||||
|
||||
// no sockets left to process waiting requests
|
||||
if (self.sockets.length === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
var wait = self.waiting.shift();
|
||||
debug('processing queued cb');
|
||||
if (wait) {
|
||||
|
||||
Reference in new issue
Block a user