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>
This commit is contained in:
Trevor Norris authored and Bert Belder committed 2014-12-09 17:57:07 +01:00
1 parent 58ca48fa3b
commit a38b917821
1 file changed
+1 -1
+1 -1
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;
}
}