Skip to content

Commit cc9145c

Browse files
committed
Update timeout.py
1 parent c045240 commit cc9145c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

XRPLib/timeout.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ def __init__(self, timeout: float):
88
:param timeout: The timeout, in seconds
99
:type timeout: float
1010
"""
11-
self.timeout = timeout*1000
11+
self.timeout = timeout
12+
if self.timeout != None:
13+
self.timeout = timeout*1000
14+
1215
self.start_time = time.ticks_ms()
1316

1417
def is_done(self):

0 commit comments

Comments
 (0)