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
|
@@ -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)) {
|