Skip to content
Snippets Groups Projects
Commit 539cea97 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Throw an error when nothing will work.

parent ce484b6a
No related branches found
No related tags found
No related merge requests found
...@@ -280,6 +280,9 @@ function DNS(servers) { ...@@ -280,6 +280,9 @@ function DNS(servers) {
this.sockets.push(sock); this.sockets.push(sock);
}, this); }, this);
if (this.sockets.length < 1)
throw('Unable to create any sockets');
increment_id = function() { increment_id = function() {
var ret = nextid; var ret = nextid;
do { do {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment