We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0785570 commit 84ffea8Copy full SHA for 84ffea8
execnet/gateway.py
@@ -75,7 +75,10 @@ def _rinfo(self, update=False):
75
""" return some sys/env information from remote. """
76
if update or not hasattr(self, "_cache_rinfo"):
77
ch = self.remote_exec(rinfo_source)
78
- self._cache_rinfo = RInfo(ch.receive())
+ try:
79
+ self._cache_rinfo = RInfo(ch.receive())
80
+ finally:
81
+ ch.waitclose()
82
return self._cache_rinfo
83
84
def hasreceiver(self):
0 commit comments