Skip to content

Commit 9b478c6

Browse files
authored
Merge pull request #1001 from Unity-Technologies/hotfix-grpc-multiprocessing
[Hotfix] Made the Pipe of the grpc communicator an instance property
2 parents 2b699d6 + a1a7245 commit 9b478c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/unityagents/rpc_communicator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515

1616

1717
class UnityToExternalServicerImplementation(UnityToExternalServicer):
18-
parent_conn, child_conn = Pipe()
18+
def __init__(self):
19+
self.parent_conn, self.child_conn = Pipe()
1920

2021
def Initialize(self, request, context):
2122
self.child_conn.send(request)

0 commit comments

Comments
 (0)