From 2b580c60e9d2933986118d8d8909e22d92fb91fb Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Thu, 31 Jan 2019 19:23:46 +0100 Subject: [PATCH] Readd deprecated `markAlive` parameter --- fbchat/client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fbchat/client.py b/fbchat/client.py index df5da1c..3a3da70 100644 --- a/fbchat/client.py +++ b/fbchat/client.py @@ -2545,7 +2545,7 @@ class Client(object): """ self.listening = True - def doOneListen(self): + def doOneListen(self, markAlive=None): """ Does one cycle of the listening 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 :rtype: bool """ + if markAlive is not None: + self._markAlive = markAlive try: if self._markAlive: self._ping()