Skip to content

Commit

Permalink
connection: assure remote is connected before queue
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Apr 27, 2024
1 parent 64a6440 commit 2152376
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -1738,6 +1738,7 @@ class Connection {
}
}
queue_outbound_respond (retval, msg) {
if (this.remote.closed) return;
if (!msg) msg = this.queue_msg(retval, msg) || 'Message Queued';
this.store_queue_result(retval, msg);
msg = `${msg} (${this.transaction.uuid})`;
Expand Down
1 change: 1 addition & 0 deletions plugins/queue/smtp_forward.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ exports.forward_enabled = function (conn, dom_cfg) {

exports.queue_forward = function (next, connection) {
const plugin = this;
if (connection.remote.closed === true) return
const txn = connection?.transaction;

const cfg = plugin.get_config(connection);
Expand Down

0 comments on commit 2152376

Please sign in to comment.