Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
crypto: use the right mutex
  • Loading branch information
bnoordhuis committed Nov 8, 2011
1 parent 409915e commit efb833f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/node_crypto.cc
Expand Up @@ -102,9 +102,9 @@ static void crypto_lock_init(void) {

static void crypto_lock_cb(int mode, int n, const char* file, int line) {
if (mode & CRYPTO_LOCK)
WaitForSingleObject(locks[type], INFINITE);
WaitForSingleObject(locks[n], INFINITE);
else
ReleaseMutex(locks[type]);
ReleaseMutex(locks[n]);
}


Expand Down

0 comments on commit efb833f

Please sign in to comment.