querysub 0.310.0 → 0.311.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "querysub",
3
- "version": "0.310.0",
3
+ "version": "0.311.0",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "note1": "note on node-forge fork, see https://github.com/digitalbazaar/forge/issues/744 for details",
@@ -413,7 +413,7 @@ const runScreenCommand = measureWrap(async function runScreenCommand(config: {
413
413
  rollingObj.pinnedDuration = config.rollingWindow;
414
414
  }
415
415
  let existingScreen = screens.find(x => x.screenName === screenName);
416
- if (existingScreen && !rollingObj) {
416
+ if (existingScreen && !rollingObj && await isScreenRunningProcess(existingScreen.pid)) {
417
417
  let nodeIdPath = os.homedir() + "/" + SERVICE_FOLDER + screenName + "/" + SERVICE_NODE_FILE_NAME;
418
418
  let rollingFinalTime = Date.now() + config.rollingWindow;
419
419
  if (fs.existsSync(nodeIdPath)) {