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
1 merge request!118Implement support for callback style programming
Pipeline #1759 passed
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment