Skip to content
This repository was archived by the owner on Jul 20, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions hitbtc/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ def __init__(self, url=None, raw=None, stdout_only=False, silent=False, **conn_o
"""Initialize a HitBTCConnector instance."""
url = url or 'wss://api.hitbtc.com/api/2/ws'
super(HitBTCConnector, self).__init__(url, **conn_ops)
# visible thread name
self.name = 'HitBTCConnector'
self.books = defaultdict(dict)
self.requests = {}
self.raw = raw
Expand Down
1 change: 1 addition & 0 deletions hitbtc/wss.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ def _start_timer(self):
# Automatically reconnect if we didnt receive data
self.connection_timer = Timer(self.connection_timeout,
self._connection_timed_out)
self.connection_timer.name = "HitBTCConnectionTimer"
self.connection_timer.start()

def send(self, data):
Expand Down