Skip to content

Commit

Permalink
remove sigint binding even after successful parse because it's readde…
Browse files Browse the repository at this point in the history
…d on next parseMap call
  • Loading branch information
Jazcash committed Feb 5, 2022
1 parent 9fc626b commit eed5a2f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,15 @@
},
"dependencies": {
"7zip-bin": "^5.0.3",
"@types/jimp": "^0.2.28",
"glob": "^7.1.6",
"jaz-signals": "^0.3.0",
"jaz-ts-utils": "^1.0.0",
"jimp": "^0.16.1",
"luaparse": "^0.3.1",
"node-7z": "^2.1.2",
"node-stream-zip": "^1.13.0",
"typescript": "^4.1.3"
"node-stream-zip": "^1.13.0"
},
"devDependencies": {
"@types/jimp": "^0.2.28",
"@types/eslint": "^7.2.5",
"@types/glob": "^7.1.3",
"@types/jest": "^26.0.20",
Expand All @@ -60,6 +58,7 @@
"eslint-plugin-unused-imports": "^1.0.0",
"jest": "^26.6.3",
"ts-jest": "^26.4.4",
"typescript": "^4.1.3",
"ts-node": "^9.1.1"
}
}
2 changes: 2 additions & 0 deletions src/map-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ export class MapParser {
scriptName = archive.smfName;
}

sigintBinding.removeAllListeners();

return {
fileName: filePath.name,
fileNameWithExt: filePath.base,
Expand Down

0 comments on commit eed5a2f

Please sign in to comment.