Skip to content

Commit abbf04a

Browse files
committed
Add timeout parameter to Apps#get_changes_since() method
See ValvePython#483
1 parent 370705f commit abbf04a

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

steam/client/builtins/apps.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from binascii import hexlify
22

33
import vdf
4+
45
from steam.core.msg import MsgProto
56
from steam.enums import EResult
67
from steam.enums.emsg import EMsg
@@ -177,14 +178,16 @@ def get_product_info(self, apps=[], packages=[], meta_data_only=False, raw=False
177178

178179
return data
179180

180-
def get_changes_since(self, change_number, app_changes=True, package_changes=False):
181+
def get_changes_since(self, change_number, app_changes=True, package_changes=False, timeout=10):
181182
"""Get changes since a change number
182183
183184
:param change_number: change number to use as stating point
184185
:type change_number: :class:`int`
185-
:param app_changes: whether to inclued app changes
186+
:param app_changes: whether to include app changes
186187
:type app_changes: :class:`bool`
187-
:param package_changes: whether to inclued package changes
188+
:param package_changes: whether to include package changes
189+
:param timeout: timeout in seconds
190+
:type timeout: :class:`int`
188191
:type package_changes: :class:`bool`
189192
:return: `CMsgClientPICSChangesSinceResponse <https://github.com/fabieu/steam-next/blob/39627fe883feeed2206016bacd92cf0e4580ead6/protobufs/steammessages_clientserver.proto#L1171-L1191>`_
190193
:rtype: proto message instance, or :class:`None` on timeout
@@ -195,7 +198,7 @@ def get_changes_since(self, change_number, app_changes=True, package_changes=Fal
195198
'send_app_info_changes': app_changes,
196199
'send_package_info_changes': package_changes,
197200
},
198-
timeout=10
201+
timeout=timeout
199202
)
200203

201204
def get_app_ticket(self, app_id):

0 commit comments

Comments
 (0)