Skip to content

Commit

Permalink
[EN-1414] better get subs references method
Browse files Browse the repository at this point in the history
  • Loading branch information
iamishalkin committed May 20, 2020
1 parent 941cca0 commit 4ada855
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dxfeed/core/DXFeedPy.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ cdef class ConnectionClass:
:list
List of weakref objects. Empty list if no refs
"""
refs = list(self.__sub_refs) if self.__sub_refs else list()
return refs
return list(self.__sub_refs)

cpdef SubscriptionClass make_new_subscription(self, data_len: int):
cdef SubscriptionClass out = SubscriptionClass(data_len)
Expand Down

0 comments on commit 4ada855

Please sign in to comment.