@@ -68,7 +68,7 @@ def __init__(
6868 :type logging_level: int
6969 :raises: FBchatException on failed login
7070 """
71- self .sticky , self .pool = (None , None )
71+ self ._sticky , self ._pool = (None , None )
7272 self ._session = requests .session ()
7373 self .req_counter = 1
7474 self .seq = "0"
@@ -2382,8 +2382,8 @@ def _ping(self):
23822382 "partition" : - 2 ,
23832383 "cap" : 0 ,
23842384 "uid" : self ._uid ,
2385- "sticky_token" : self .sticky ,
2386- "sticky_pool" : self .pool ,
2385+ "sticky_token" : self ._sticky ,
2386+ "sticky_pool" : self ._pool ,
23872387 "viewer_uid" : self ._uid ,
23882388 "state" : "active" ,
23892389 }
@@ -2393,8 +2393,8 @@ def _pullMessage(self):
23932393 """Call pull api with seq value to get message data."""
23942394 data = {
23952395 "msgs_recv" : 0 ,
2396- "sticky_token" : self .sticky ,
2397- "sticky_pool" : self .pool ,
2396+ "sticky_token" : self ._sticky ,
2397+ "sticky_pool" : self ._pool ,
23982398 "clientid" : self ._client_id ,
23992399 "state" : "active" if self ._markAlive else "offline" ,
24002400 }
@@ -2951,8 +2951,8 @@ def _parseMessage(self, content):
29512951 self .seq = content .get ("seq" , "0" )
29522952
29532953 if "lb_info" in content :
2954- self .sticky = content ["lb_info" ]["sticky" ]
2955- self .pool = content ["lb_info" ]["pool" ]
2954+ self ._sticky = content ["lb_info" ]["sticky" ]
2955+ self ._pool = content ["lb_info" ]["pool" ]
29562956
29572957 if "batches" in content :
29582958 for batch in content ["batches" ]:
@@ -3098,7 +3098,7 @@ def doOneListen(self, markAlive=None):
30983098 def stopListening (self ):
30993099 """Cleans up the variables from startListening"""
31003100 self .listening = False
3101- self .sticky , self .pool = (None , None )
3101+ self ._sticky , self ._pool = (None , None )
31023102
31033103 def listen (self , markAlive = None ):
31043104 """
0 commit comments