Commit 15895c1e15a11186add52f3992d727d60e6865fc
1 parent
df8fe410
Avoid multi-processing error in ctbin
Showing
1 changed file
with
1 additions
and
1 deletions
src/ctbin/ctbin.cpp
| ... | ... | @@ -301,7 +301,7 @@ void ctbin::run(void) |
| 301 | 301 | // and set weights in the first slot of the m_counts and |
| 302 | 302 | // m_weights arrays |
| 303 | 303 | if (m_stack) { |
| 304 | - if (i == 0) { | |
| 304 | + if (m_counts[0].is_empty()) { | |
| 305 | 305 | m_counts[0] = counts; |
| 306 | 306 | m_weights[0] = weights; |
| 307 | 307 | } | ... | ... |