Changeset 7bd87d


Ignore:
Timestamp:
11/19/2013 10:43:01 PM (11 years ago)
Author:
Calum Lind <calumlind+deluge@gmail.com>
Children:
a3806b
Parents:
8bf18d6
git-author:
Calum Lind <calumlind+deluge@gmail.com> (11/19/2013 10:11:15 PM)
git-committer:
Calum Lind <calumlind+deluge@gmail.com> (11/19/2013 10:43:01 PM)
Message:

Fix #2335 : IPC lockfile issue preventing start of deluge-gtk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • deluge/ui/gtkui/ipcinterface.py

    r8bf18d6 r7bd87d  
    126126            lockfile = socket + ".lock"
    127127            log.debug("Checking if lockfile exists: %s", lockfile)
    128             if os.path.lexists(lockfile):
     128            if os.path.lexists(lockfile) or os.path.lexists(socket):
    129129                try:
    130130                    os.kill(int(os.readlink(lockfile)), 0)
     
    133133                    try:
    134134                        os.remove(lockfile)
     135                    except OSError, ex:
     136                        log.error("Failed to delete IPC lockfile file: %s", ex)
     137                    try:
    135138                        os.remove(socket)
    136                     except Exception, e:
    137                         log.error("Problem deleting lockfile or socket file!")
    138                         log.exception(e)
     139                    except OSError, ex:
     140                        log.error("Failed to delete IPC socket file: %s", ex)
    139141            try:
    140142                self.factory = Factory()
Note: See TracChangeset for help on using the changeset viewer.