Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Fix Issue #108 #123

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
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 poker_ai/ai/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@

import joblib

manager = mp.Manager()
if __name__ == "__main__":
manager = mp.Manager()


class Agent:
Expand Down
5 changes: 3 additions & 2 deletions poker_ai/ai/multiprocess/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
from poker_ai.games.short_deck import state
from poker_ai.ai.multiprocess.worker import Worker

log = logging.getLogger("sync.server")
manager = mp.Manager()
if __name__ == "__main__":
log = logging.getLogger("sync.server")
manager = mp.Manager()


class Server:
Expand Down