PROTO proto(settings.GetServerName(),
settings.GetServerPort(),
settings.GetLocalPort(),
- 1);
+ 1000);
+
+if (!proto.Start())
+ {
+ std::cerr << "Failed to start listening thread: '" << proto.GetStrError() << "'" << std::endl;
+ return -1;
+ }
STORE_LOADER storeLoader(settings.GetModulesPath(), settings.GetStoreModuleSettings());
if (storeLoader.Load())
*it,
userConf.password,
userConf.ips[0].ip
- )
+ ),
+ true
);
}
usleep(200000);
}
+proto.Stop();
+
storeLoader.Unload();
return 0;