Commit 539cea97 authored by Deucе's avatar Deucе 👌🏾
Browse files

Throw an error when nothing will work.

parent ce484b6a
Pipeline #1759 passed with stage
in 29 minutes and 29 seconds
......@@ -280,6 +280,9 @@ function DNS(servers) {
this.sockets.push(sock);
}, this);
if (this.sockets.length < 1)
throw('Unable to create any sockets');
increment_id = function() {
var ret = nextid;
do {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment