diff options
Diffstat (limited to 'bitbake/lib/prserv/serv.py')
| -rw-r--r-- | bitbake/lib/prserv/serv.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/prserv/serv.py b/bitbake/lib/prserv/serv.py index ea7933164b..6168eb183d 100644 --- a/bitbake/lib/prserv/serv.py +++ b/bitbake/lib/prserv/serv.py | |||
| @@ -345,9 +345,9 @@ def auto_shutdown(): | |||
| 345 | def ping(host, port): | 345 | def ping(host, port): |
| 346 | from . import client | 346 | from . import client |
| 347 | 347 | ||
| 348 | conn = client.PRClient() | 348 | with client.PRClient() as conn: |
| 349 | conn.connect_tcp(host, port) | 349 | conn.connect_tcp(host, port) |
| 350 | return conn.ping() | 350 | return conn.ping() |
| 351 | 351 | ||
| 352 | def connect(host, port): | 352 | def connect(host, port): |
| 353 | from . import client | 353 | from . import client |
