Skip to content

Commit

Permalink
revert: fix: pause child monitors if parent is paused
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-piehl committed Oct 13, 2024
1 parent d167730 commit 9eda25d
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -987,11 +987,6 @@ let needSetup = false;
await startMonitor(socket.userID, monitorID);
await server.sendUpdateMonitorIntoList(socket, monitorID);

const childrenIDs = await Monitor.getAllChildrenIDs(monitorID);
for (let childID of childrenIDs) {
await server.sendUpdateMonitorIntoList(socket, childID);
}

callback({
ok: true,
msg: "successResumed",
Expand All @@ -1012,11 +1007,6 @@ let needSetup = false;
await pauseMonitor(socket.userID, monitorID);
await server.sendUpdateMonitorIntoList(socket, monitorID);

const childrenIDs = await Monitor.getAllChildrenIDs(monitorID);
for (let childID of childrenIDs) {
await server.sendUpdateMonitorIntoList(socket, childID);
}

callback({
ok: true,
msg: "successPaused",
Expand Down

0 comments on commit 9eda25d

Please sign in to comment.