Commit a2f63d74370b01c7015d11f6d6ae3dacf039322e
1 parent
173e452e52
Exists in
master
and in
1 other branch
Add await
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
lib/transport.js
... | ... | @@ -57,7 +57,7 @@ async function sendToModem(partner, msg, modem, parentXid) { |
57 | 57 | }); |
58 | 58 | |
59 | 59 | if (msgTail) { |
60 | - sendToModem(partner, msgTail, modem); | |
60 | + await sendToModem(partner, msgTail, modem); | |
61 | 61 | } |
62 | 62 | } |
63 | 63 | |
... | ... | @@ -77,5 +77,5 @@ exports.send = async (partner, msg) => { |
77 | 77 | return; |
78 | 78 | } |
79 | 79 | |
80 | - sendToModem(partner, msg.trim(), modem, xid); | |
80 | + await sendToModem(partner, msg.trim(), modem, xid); | |
81 | 81 | }; |