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