mirror of https://github.com/eleith/emailjs.git
smtp/client: remove unnecessary callback invocation
This commit is contained in:
parent
44d31b579d
commit
ca135f8f38
|
@ -63,9 +63,6 @@ export class SMTPClient {
|
||||||
}
|
}
|
||||||
this.queue.push(stack);
|
this.queue.push(stack);
|
||||||
this._poll();
|
this._poll();
|
||||||
if (this.queue.every((x) => x !== stack)) {
|
|
||||||
callback(null, message);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
callback(new Error(why), msg);
|
callback(new Error(why), msg);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue