Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

增加锁 #78

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion gsil/__init__.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"""
import sys
import time
import random
import traceback
import multiprocessing
from .engine import Engine
Expand Down Expand Up @@ -52,9 +51,11 @@ class instance can't pickle in apply_async
exit(0)
try:
ret = Engine(token=token).search(rule)
lock.acquire()
token_dict[token] = False
store_result(ret)
scan_rule_queue.put(rule)
lock.release()
except Exception as e:
traceback.print_exc()
#return False, None, traceback.format_exc()
Expand Down