Fixed comparing watchers in server with a rare case
This commit is contained in:
parent
9506a80b9b
commit
8072fca28f
@ -306,7 +306,7 @@ class Watcher(object):
|
|||||||
def __lt__(self, b):
|
def __lt__(self, b):
|
||||||
if self.getPosition() is None or self._file is None:
|
if self.getPosition() is None or self._file is None:
|
||||||
return False
|
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 True
|
||||||
return self.getPosition() < b.getPosition()
|
return self.getPosition() < b.getPosition()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user