Compare commits
2 commits
4e62f80222
...
91d1a93ddf
| Author | SHA1 | Date | |
|---|---|---|---|
| 91d1a93ddf | |||
| f09063ba35 |
2 changed files with 5 additions and 2 deletions
|
|
@ -315,11 +315,14 @@ class ConnectionController:
|
|||
return port_number
|
||||
|
||||
@staticmethod
|
||||
def await_connection(port_number: int = None, maximum_number_of_attempts: int = 2, connection_observer: Optional[ConnectionObserver] = None):
|
||||
def await_connection(port_number: Optional[int] = None, maximum_number_of_attempts: Optional[int] = None, connection_observer: Optional[ConnectionObserver] = None):
|
||||
|
||||
if port_number is None:
|
||||
ConnectionController.await_network_interface()
|
||||
|
||||
if maximum_number_of_attempts is None:
|
||||
maximum_number_of_attempts = 2
|
||||
|
||||
retry_interval = 5.0
|
||||
|
||||
for retry_count in range(maximum_number_of_attempts):
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[project]
|
||||
name = "sp-hydra-veil-core"
|
||||
version = "2.1.0"
|
||||
version = "2.1.1"
|
||||
authors = [
|
||||
{ name = "Simplified Privacy" },
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in a new issue