Commit e4572e85 authored by Vincent Pelletier's avatar Vincent Pelletier

Fox typo in variable name.

Prevent errors from happening in __del__ when instance gets destroyed before connecting.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@814 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 46bbf87c
......@@ -168,7 +168,7 @@ class Application(object):
def doAction(self, packet):
conn = self.getConnection()
conn.ask(p)
conn.ask(packet)
self.result = ""
while 1:
self.em.poll(1)
......@@ -176,7 +176,8 @@ class Application(object):
break
def __del__(self):
self.conn.close()
if self.conn is not None:
self.conn.close()
def execute(self, args):
"""Execute the command given."""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment