spectrum2_manager fix

This commit is contained in:
HanzZ 2012-04-09 09:17:42 +02:00
parent 5a267a59a3
commit 10f94e5e82

View file

@ -315,7 +315,7 @@ static void ask_local_servers(ManagerConfig *config, Swift::BoostNetworkFactorie
}
finished++;
Swift::Client *client = new Swift::Client(CONFIG_STRING(&cfg, "service.admin_jid"), CONFIG_STRING(&cfg, "service.admin_password"), &networkFactories);
Swift::Client *client = new Swift::Client(CONFIG_VECTOR(&cfg, "service.admin_jid")[0], CONFIG_STRING(&cfg, "service.admin_password"), &networkFactories);
client->setAlwaysTrustCertificates();
client->onConnected.connect(boost::bind(&handleConnected, client, CONFIG_STRING(&cfg, "service.jid")));
client->onDisconnected.connect(bind(&handleDisconnected, client, _1, CONFIG_STRING(&cfg, "service.jid")));