Fixed bug where \TamerLib > tm > run()
would return early even if the $timeout
is set to 0.
This commit is contained in:
parent
bc91147557
commit
54bc954830
2 changed files with 8 additions and 1 deletions
|
@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
|
|||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [2.0.1] - Unreleased
|
||||
|
||||
Minor bugfixes and improvements.
|
||||
|
||||
### Fixed
|
||||
- Fixed bug where `\TamerLib > tm > run()` would return early even if the `$timeout` is set to 0.
|
||||
|
||||
## [2.0.0] - 2023-06-18
|
||||
|
||||
This version of TamerLib offers a comprehensive framework for implementing parallel processing in PHP applications.
|
||||
|
|
|
@ -740,7 +740,7 @@
|
|||
return;
|
||||
}
|
||||
|
||||
if((time() - $start_time) >= $timeout)
|
||||
if($timeout > 0 && (time() - $start_time) >= $timeout)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue