check for both link and original path in process lookup

This commit is contained in:
Nathan Freitas 2013-12-28 09:52:36 -05:00
parent b48bbc1487
commit e0a7fbb450
1 changed files with 1 additions and 2 deletions

View File

@ -765,7 +765,7 @@ public class TorService extends Service implements TorServiceConstants, TorConst
if (procId == -1)
{
Thread.sleep(torRetryWaitTimeMS);
procId = TorServiceUtils.findProcessId(fileTorLink.getAbsolutePath());
procId = TorServiceUtils.findProcessId(fileTorOrig.getAbsolutePath());
attempts++;
}
else
@ -833,7 +833,6 @@ public class TorService extends Service implements TorServiceConstants, TorConst
attempts++;
}
logNotice(log.toString());
}