Skip to content

Commit

Permalink
Fix issue with nodemon causing a worker to start falsely...
Browse files Browse the repository at this point in the history
  • Loading branch information
DemonMartin committed Aug 23, 2024
1 parent 59b25b4 commit f6b7c5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class Client {
export default Client;

// For the workerpool to work, you need to run the following code
if (!workerpool.isMainThread) {
if (!workerpool.isMainThread && process.argv.length > 2) {
while (!fs.existsSync(process.argv[2])) {
// Wait for the library to be downloaded
setTimeout(() => { }, 100);
Expand Down

0 comments on commit f6b7c5d

Please sign in to comment.