Small fix for OS X. Without it, Gajim won't restart if it crashed.
This commit is contained in:
parent
49ad57084e
commit
bd472ba5be
|
@ -331,8 +331,11 @@ def pid_alive():
|
|||
return True
|
||||
return False
|
||||
elif sys.platform == 'darwin':
|
||||
from osx import checkPID
|
||||
return checkPID(pid, 'Gajim.bin')
|
||||
try:
|
||||
from osx import checkPID
|
||||
return checkPID(pid, 'Gajim.bin')
|
||||
except ImportError:
|
||||
return
|
||||
try:
|
||||
if not os.path.exists('/proc'):
|
||||
return True # no /proc, assume Gajim is running
|
||||
|
|
Loading…
Reference in New Issue