diff --git a/src/gajim.py b/src/gajim.py index bb9403e918d538e53de9356642e68a782dce4b95..2209623e94494bc59eb534e836829fddaf8d7240 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -155,8 +155,15 @@ def pid_alive(): except: # probably file not found return False - pid = int(pf.read().strip()) - pf.close() + + try: + pid = int(pf.read().strip()) + pf.close() + except: + traceback.print_exc() + # PID file exists, but something happened trying to read PID + # Could be 0.10 style empty PID file, so assume Gajim is running + return True if os.name == 'nt': try: