Readd deprecated markAlive parameter

This commit is contained in:
Mads Marquart
2019-01-31 19:23:46 +01:00
parent e80a040db4
commit 2b580c60e9

View File

@@ -2545,7 +2545,7 @@ class Client(object):
""" """
self.listening = True self.listening = True
def doOneListen(self): def doOneListen(self, markAlive=None):
""" """
Does one cycle of the listening loop. Does one cycle of the listening loop.
This method is useful if you want to control fbchat from an external event loop This method is useful if you want to control fbchat from an external event loop
@@ -2557,6 +2557,8 @@ class Client(object):
:return: Whether the loop should keep running :return: Whether the loop should keep running
:rtype: bool :rtype: bool
""" """
if markAlive is not None:
self._markAlive = markAlive
try: try:
if self._markAlive: if self._markAlive:
self._ping() self._ping()