Fixed bug where \TamerLib > tm > run() would return early even if the $timeout is set to 0.

This commit is contained in:
Netkas 2023-06-30 00:55:51 -04:00
parent bc91147557
commit 54bc954830
No known key found for this signature in database
GPG key ID: 5DAF58535614062B
2 changed files with 8 additions and 1 deletions

View file

@ -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.

View file

@ -740,7 +740,7 @@
return;
}
if((time() - $start_time) >= $timeout)
if($timeout > 0 && (time() - $start_time) >= $timeout)
{
return;
}