Remove unused server utils
This commit is contained in:
parent
b29358a0ed
commit
2712d81d50
@ -1,17 +0,0 @@
|
||||
var utils = {};
|
||||
|
||||
utils.startOnNextPort = function(server, issue, start_port) {
|
||||
|
||||
var port = start_port || 5555;
|
||||
|
||||
server.on('error', function(e) {
|
||||
console.log("Port " + port + " already in use, retrying");
|
||||
utils.startOnNextPort(server, issue, port+1);
|
||||
});
|
||||
|
||||
server.listen(port, '127.0.0.1', issue);
|
||||
}
|
||||
|
||||
module.exports = utils;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user