Skip to content

Commit

Permalink
fix(core): return value
Browse files Browse the repository at this point in the history
  • Loading branch information
Cammisuli committed Mar 6, 2023
1 parent a503481 commit ddb8d51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/nx/src/daemon/client/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,11 @@ export class DaemonClient {
private async sendToDaemonViaQueue(messageToDaemon: Message): Promise<any> {
return this.queue
.sendToQueue(() => this.sendMessageToDaemon(messageToDaemon))
.then(() => {
.then((value) => {
if (this.queue.isEmpty()) {
this.closeConnection();
}
return value;
});
}

Expand Down

0 comments on commit ddb8d51

Please sign in to comment.