Skip to content

Commit 926d7f6

Browse files
caolanmAshod
authored andcommitted
the return of prespawnChildren is never checked
so drop it Signed-off-by: Caolán McNamara <[email protected]> Change-Id: I28688b2490251fff2aee6a7c89885752e2dc4f31
1 parent a714bf7 commit 926d7f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

wsd/COOLWSD.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -542,12 +542,12 @@ static int rebalanceChildren(int balance)
542542

543543
/// Proactively spawn children processes
544544
/// to load documents with alacrity.
545-
/// Returns true only if at least one child was requested to spawn.
546-
static bool prespawnChildren()
545+
static void prespawnChildren()
547546
{
548547
// Rebalance if not forking already.
549548
std::unique_lock<std::mutex> lock(NewChildrenMutex, std::defer_lock);
550-
return lock.try_lock() && (rebalanceChildren(COOLWSD::NumPreSpawnedChildren) > 0);
549+
if (lock.try_lock())
550+
rebalanceChildren(COOLWSD::NumPreSpawnedChildren);
551551
}
552552

553553
#endif

0 commit comments

Comments
 (0)