Skip to content

Commit c557a18

Browse files
committed
Handle max concurrent tasks 0
1 parent 18494fe commit c557a18

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libs/proxy.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ module.exports = {
8989
};
9090

9191
const maxConcurrencyLimitReached = async (maxConcurrentTasks, token) => {
92+
if (maxConcurrentTasks === 0) return true;
9293
if (!maxConcurrentTasks) return false;
9394

9495
const userRoutes = await routetable.findByToken(token);

0 commit comments

Comments
 (0)