Skip to content

Commit ebcfe7c

Browse files
bjsowamlanighan
andauthored
fix: Apply service timeout parameter correctly (backport #1125) (#1129)
Co-authored-by: Mike Lanighan <[email protected]>
1 parent e9b0670 commit ebcfe7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rosbridge_library/src/rosbridge_library/capabilities/call_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class CallService(Capability):
5858
)
5959

6060
services_glob: list[str] | None = None
61-
default_timeout: float = 5.0
61+
default_call_service_timeout: float = 5.0
6262
call_services_in_new_thread: bool = True
6363

6464
def __init__(self, protocol: Protocol) -> None:
@@ -89,7 +89,7 @@ def call_service(self, message: dict[str, Any]) -> None:
8989
fragment_size: int | None = message.get("fragment_size")
9090
compression: str = message.get("compression", "none")
9191
args: list | dict[str, Any] = message.get("args", [])
92-
timeout: float = message.get("timeout", self.default_timeout)
92+
timeout: float = message.get("timeout", self.default_call_service_timeout)
9393

9494
if self.services_glob is not None:
9595
self.protocol.log(

0 commit comments

Comments
 (0)