Skip to content

Commit

Permalink
Resets check.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alliballibaba2 committed Nov 5, 2024
1 parent e52dd0f commit cd98e33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php_threads.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func initPHPThreads(numThreads int) error {
shutdownWG.Add(len(phpThreads))
for _, thread := range phpThreads {
thread.setInactive()
if C.frankenphp_new_php_thread(C.uintptr_t(thread.threadIndex)) == C.false {
if !C.frankenphp_new_php_thread(C.uintptr_t(thread.threadIndex)) {
panic(fmt.Sprintf("unable to create thread %d", thread.threadIndex))
}
}
Expand Down

0 comments on commit cd98e33

Please sign in to comment.