Skip to content

Commit

Permalink
Set connect_timeout on device client (#798)
Browse files Browse the repository at this point in the history
  • Loading branch information
inverse committed Feb 23, 2023
1 parent e864737 commit 3b15495
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tasmoadmin/src/Sonoff.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public function __construct(DeviceRepository $deviceRepository, ?Client $client
$this->deviceRepository = $deviceRepository;
$this->responseParser = new ResponseParser();
$this->client = $client ?? new Client([
'connect_timeout' => 5,
'timeout' => 5,
]);
}
Expand Down

0 comments on commit 3b15495

Please sign in to comment.