Skip to content
Snippets Groups Projects
Commit bd472ba5 authored by js's avatar js
Browse files

Small fix for OS X. Without it, Gajim won't restart if it crashed.

parent 49ad5708
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment