Skip to content

Commit

Permalink
Fix issue with the addition into the whois dataset.
Browse files Browse the repository at this point in the history
Indeed, before this patch, the condition was still thread oriented.
As of now, it is process oriented.
  • Loading branch information
funilrys committed Jan 3, 2021
1 parent 7fc19b5 commit b55019e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions PyFunceble/checker/availability/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,8 @@
limitations under the License.
"""


import functools
import threading
import multiprocessing
from datetime import datetime
from typing import Dict, List, Optional, Tuple, Union

Expand Down Expand Up @@ -701,7 +700,7 @@ def try_to_query_status_from_whois(self) -> "AvailabilityCheckerBase":
self.status.whois_record = self.whois_query_tool.get_record()

if (
not threading.current_thread().name.startswith(
not multiprocessing.current_process().name.startswith(
PyFunceble.storage.PROJECT_NAME.lower()
)
and self.status.expiration_date
Expand Down

0 comments on commit b55019e

Please sign in to comment.