summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@ugent.be>2017-08-13 11:24:27 +0200
committerdimitri staessens <dimitri.staessens@ugent.be>2017-08-13 11:24:27 +0200
commit9b7f03ae5e1ac92c5a33979067c31a46468c35e1 (patch)
treea44090934afac6d105a1a475c54f09044c84aab4 /src
parent0f333a2515237a1f65785ff5e9f54efba7737362 (diff)
downloadouroboros-9b7f03ae5e1ac92c5a33979067c31a46468c35e1.tar.gz
ouroboros-9b7f03ae5e1ac92c5a33979067c31a46468c35e1.zip
lib: Fix TPM thread count on failure
Diffstat (limited to 'src')
-rw-r--r--src/lib/tpm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/tpm.c b/src/lib/tpm.c
index f45744ee..31bb8a7f 100644
--- a/src/lib/tpm.c
+++ b/src/lib/tpm.c
@@ -161,7 +161,7 @@ static void * tpmgr(void * o)
list_add(&e->next, &tpm.pool);
}
- tpm.cur += tpm.inc;
+ tpm.cur += i;
}
if (pthread_cond_timedwait(&tpm.cond, &tpm.lock, &dl)