Fixed an error in channel.msg. Made sure to return a deferred from tail_log_file as its documentation suggests it should.
This commit is contained in:
parent
4a58fcb9f1
commit
fd50eaddba
2 changed files with 2 additions and 2 deletions
|
|
@ -259,7 +259,7 @@ def tail_log_file(filename, offset, nlines, callback=None):
|
|||
filehandle = _open_log_file(filename)
|
||||
if filehandle:
|
||||
if callback:
|
||||
deferToThread(seek_file, filehandle, offset, nlines, callback).addErrback(errback)
|
||||
return deferToThread(seek_file, filehandle, offset, nlines, callback).addErrback(errback)
|
||||
else:
|
||||
return seek_file(filehandle, offset, nlines, callback)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue