From dbf4d595433ecefeb61f1267ffa515a91c3ab548 Mon Sep 17 00:00:00 2001 From: danieldg Date: Wed, 14 Oct 2009 22:12:55 +0000 Subject: Fix module unmapping with culled Module objects git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11875 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/testsuite.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/testsuite.cpp') diff --git a/src/testsuite.cpp b/src/testsuite.cpp index bc68cb5f1..48ba4845c 100644 --- a/src/testsuite.cpp +++ b/src/testsuite.cpp @@ -79,7 +79,11 @@ TestSuite::TestSuite() case '3': cout << "Enter module filename to unload: "; cin >> modname; - cout << (ServerInstance->Modules->Unload(modname.c_str()) ? "\nSUCCESS!\n" : "\nFAILURE\n"); + { + Module* m = ServerInstance->Modules->Find(modname); + cout << (ServerInstance->Modules->Unload(m) ? "\nSUCCESS!\n" : "\nFAILURE\n"); + ServerInstance->AtomicActions.Run(); + } break; case '4': cout << (DoThreadTests() ? "\nSUCCESS!\n" : "\nFAILURE\n"); -- cgit v1.3.1-10-gc9f91