node.cc: fix bad assert

It was my mistake to change an assert check. This changes it back to how
the assert was originally done.

Fixes: c131c1f "modules: adding load linked modules feature"
Signed-off-by: Trevor Norris <trev.norris@gmail.com>
pull/17/merge
Trevor Norris 2014-12-09 05:22:49 +01:00 committed by Bert Belder
parent 58ca48fa3b
commit a38b917821
1 changed files with 1 additions and 1 deletions

View File

@ -2051,7 +2051,7 @@ extern "C" void node_module_register(void* m) {
} else {
// Once node::Init was called we can only register dynamic modules.
// See DLOpen.
CHECK_EQ(modpending, nullptr);
CHECK_NE(modpending, nullptr);
modpending = mp;
}
}