diff options
author | Robey Pointer <robey@lag.net> | 2003-11-10 06:52:35 +0000 |
---|---|---|
committer | Robey Pointer <robey@lag.net> | 2003-11-10 06:52:35 +0000 |
commit | 2ff9f467517e1ff8916e1adbdaf342d0468b4ebb (patch) | |
tree | 0d702f414a697b72f49292cd1c1de7ee99639b72 /demo_server.py | |
parent | aad7b859f194451a0529c4d8aa20cdc724ae33a2 (diff) |
[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-8]
doc changes
Diffstat (limited to 'demo_server.py')
-rwxr-xr-x | demo_server.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/demo_server.py b/demo_server.py index a4cf01c8..273bb793 100755 --- a/demo_server.py +++ b/demo_server.py @@ -73,7 +73,11 @@ try: sys.exit(1) # print repr(t) - chan = t.accept() + # wait for auth + chan = t.accept(10) + if chan is None: + print '*** No channel.' + sys.exit(1) chan.event.wait(10) if not chan.event.isSet(): print '*** Client never asked for a shell.' |