unlink log on remove

This commit is contained in:
j 2019-02-02 14:29:05 +05:30
parent 611fc2b373
commit a111aaac46

View file

@ -208,8 +208,9 @@ class Peer(object):
def remove(self):
self.join()
os.unlink(self._dbpath)
os.unlink(self._infopath)
for path in (self._dbpath, self._logpath, self._infopath):
if os.path.exists(path):
os.unlink(path)
def sync_db(self):
import item.models