if host is invalid to not start

This commit is contained in:
Dimitur Kirov 2006-02-07 08:34:20 +00:00
parent 72d49e951e
commit 85ba371288
1 changed files with 4 additions and 4 deletions

View File

@ -216,16 +216,16 @@ class IdleCommand(IdleObject):
self.pipe.stdout.close()
self.pipe.stdin.close()
def start(self):
if not self.canexecute:
self.result = ''
self._return_result()
return
if os.name == 'nt':
self._start_nt()
elif os.name == 'posix':
self._start_posix()
def _start_nt(self):
if not self.canexecute:
self.result = ''
self._return_result()
return
# if gajim is started from noninteraactive shells stdin is closed and
# cannot be forwarded, so we have to keep it open
self.pipe = Popen(self._compose_command_args(), stdout=PIPE,