From cb9d5357c4acdb38d277f5fa7b8a3d4a921eee30 Mon Sep 17 00:00:00 2001 From: Mathias Svensson Date: Thu, 18 Sep 2014 08:09:03 +0200 Subject: [PATCH] Fixed uroboros (#123) --- examples/listen_uroboros.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/listen_uroboros.py b/examples/listen_uroboros.py index 43df034ea..ad9b20fe7 100644 --- a/examples/listen_uroboros.py +++ b/examples/listen_uroboros.py @@ -5,10 +5,10 @@ from pwn import * -cs = [listen(1337) for _ in range(3)] +cs = [listen(1337).wait_for_connection() for _ in range(3)] cs[0] << cs[1] << cs[2] << cs[0] -cs[0].wait() -cs[1].wait() -cs[2].wait() +cs[0].wait_for_close() +cs[1].wait_for_close() +cs[2].wait_for_close()