Skip to content

Commit

Permalink
Revert timeout parameter to previous behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
achillean authored Dec 31, 2021
1 parent d1027d8 commit 490fdb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shodan/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def _create_stream(self, name, query=None, timeout=None):
# If the user requested a timeout then we need to disable heartbeat messages
# which are intended to keep stream connections alive even if there isn't any data
# flowing through.
if timeout is not None:
if timeout:
params['heartbeat'] = False

if query is not None:
Expand Down

0 comments on commit 490fdb5

Please sign in to comment.