Skip to content

Commit

Permalink
fix(server/calls): don't return on responses for endCall
Browse files Browse the repository at this point in the history
  • Loading branch information
itschip committed Mar 19, 2022
1 parent e1e1f36 commit 165c90e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions resources/server/calls/calls.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ class CallsService {
if (reqObj.data.isUnavailable) {
emitNet(CallEvents.WAS_ENDED, reqObj.source);
resp({ status: 'ok' });
return;
}

const currentCall = this.callMap.get(transmitterNumber);
Expand All @@ -240,7 +239,7 @@ class CallsService {
callLogger.error(
`Call with transmitter number ${transmitterNumber} does not exist in current calls map!`,
);
return resp({ status: 'error', errorMsg: 'DOES_NOT_EXIST' });
resp({ status: 'error', errorMsg: 'DOES_NOT_EXIST' });
}

// Just in case currentCall for some reason at this point is falsy
Expand Down

0 comments on commit 165c90e

Please sign in to comment.