Only call `.poll()` if a method on the spawn backend
parent
e1caeeb8de
commit
c865d01e85
|
@ -655,14 +655,12 @@ class Actor:
|
||||||
entry = local_nursery._children.get(uid)
|
entry = local_nursery._children.get(uid)
|
||||||
if entry:
|
if entry:
|
||||||
_, proc, _ = entry
|
_, proc, _ = entry
|
||||||
# if proc.poll() is not None:
|
|
||||||
# log.error('Actor {uid} proc died and IPC broke?')
|
|
||||||
|
|
||||||
if proc.poll() is None:
|
poll = getattr(proc, 'poll', None)
|
||||||
|
if poll and poll() is None:
|
||||||
log.cancel(
|
log.cancel(
|
||||||
f'Actor {uid} IPC terminated but proc is alive?!'
|
f'Actor {uid} IPC broke but proc is alive?'
|
||||||
)
|
)
|
||||||
# f'Actor {uid}@{proc} IPC connection broke!?'
|
|
||||||
|
|
||||||
# ``Channel`` teardown and closure sequence
|
# ``Channel`` teardown and closure sequence
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue