mirror of https://github.com/eleith/emailjs.git
smtp/client: remove unnecessary callback invocation
This commit is contained in:
parent
d1fca9efe3
commit
b3935e759e
|
@ -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