Fixed comparing watchers in server with a rare case

This commit is contained in:
Uriziel 2014-10-05 21:01:34 +02:00
parent 9506a80b9b
commit 8072fca28f

View File

@ -306,7 +306,7 @@ class Watcher(object):
def __lt__(self, b):
if self.getPosition() is None or self._file is None:
return False
if b.getPosition is None or b._file is None:
if b.getPosition() is None or b.getFile() is None:
return True
return self.getPosition() < b.getPosition()