Skip to content

Commit

Permalink
Merge pull request #416 from ZIMkaRU/bugfix/fix-infrequent-case-for-p…
Browse files Browse the repository at this point in the history
…rocess.send

Fix infrequent case for process.send
  • Loading branch information
ezewer authored Sep 13, 2024
2 parents 8ac4a6a + 60cf480 commit 2cc4032
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion workers/loc.api/process.message.manager/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ const sendState = (state, data) => {
) {
throw new ProcessStateSendingError()
}
if (typeof process.send !== 'function') {
if (
typeof process.send !== 'function' ||
!process.connected
) {
return false
}

Expand Down

0 comments on commit 2cc4032

Please sign in to comment.