From: Cameron Patrick Date: Sun, 1 Aug 2004 06:41:04 +0000 (+0000) Subject: ahh, decserver doesn't always echo X-Git-Tag: IMPORT-FROM-UCCCVS~87 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=40e17947a5da57fefc76768a23f55a9b9aed6e92;p=uccvend-vendserver.git ahh, decserver doesn't always echo --- diff --git a/sql-edition/servers/LATClient.py b/sql-edition/servers/LATClient.py index dedc1ff..12cc47c 100644 --- a/sql-edition/servers/LATClient.py +++ b/sql-edition/servers/LATClient.py @@ -99,9 +99,9 @@ class LATClient: self.sock.close() mopw, mopr = popen4('/usr/sbin/moprc '+self.server_name) read_for_a_bit(mopr) - write_expecting_echo(mopr, mopw, '\n') + mopw.write('\n') read_for_a_bit(mopr) - write_expecting_echo(mopr, mopw, self.connect_password+'\n') + mopw.write(self.connect_password+'\n') read_for_a_bit(mopr) write_expecting_echo(mopr, mopw, 'grim reaper\n') read_for_a_bit(mopr)