Skip to content

Commit 2152724

Browse files
changes in start agent
1 parent 272d1c6 commit 2152724

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@codebolt/codeboltjs",
3-
"version": "1.1.95",
3+
"version": "1.1.96",
44
"description": "",
55
"keywords": [],
66
"author": "",

src/modules/agent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const codeboltAgent = {
6464
}));
6565
cbws.getWebsocket.on('message', (data: string) => {
6666
const response = JSON.parse(data);
67-
if (response.type === "taskCompletionResponse") {
67+
if (response.type === "taskCompletionResponse" && response.agentId === agentId) {
6868
resolve(response); // Resolve the Promise when the agent has been successfully started
6969
}
7070
});

0 commit comments

Comments
 (0)