fix crash in disconnectUserBouncer test
This commit is contained in:
parent
6fdb010f38
commit
bb05df65b0
2 changed files with 1 additions and 1 deletions
|
@ -217,7 +217,6 @@ class UserManagerTest : public CPPUNIT_NS :: TestFixture, public BasicTest {
|
|||
|
||||
CPPUNIT_ASSERT_EQUAL(1, userManager->getUserCount());
|
||||
CPPUNIT_ASSERT_EQUAL(0, (int) received.size());
|
||||
CPPUNIT_ASSERT(dynamic_cast<Swift::Presence *>(getStanza(received[0])));
|
||||
CPPUNIT_ASSERT(userManager->getUser("user@localhost"));
|
||||
|
||||
userManager->removeAllUsers();
|
||||
|
|
|
@ -509,6 +509,7 @@ bool UserRegistration::handleSetRequest(const Swift::JID& from, const Swift::JID
|
|||
res.language = language;
|
||||
res.encoding = encoding;
|
||||
res.vip = 0;
|
||||
res.id = 0;
|
||||
registerUser(res);
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Reference in a new issue