select interrupt cleanup
This commit is contained in:
@ -92,12 +92,9 @@ int main(int argc, char** argv)
|
||||
|
||||
CLI11_PARSE(app, argc, argv);
|
||||
|
||||
ix::Socket::init();
|
||||
|
||||
// pid file handling
|
||||
|
||||
if (app.got_subcommand("transfer"))
|
||||
{
|
||||
// pid file handling
|
||||
if (!pidfile.empty())
|
||||
{
|
||||
unlink(pidfile.c_str());
|
||||
|
@ -153,7 +153,6 @@ namespace ix
|
||||
|
||||
int ws_connect_main(const std::string& url)
|
||||
{
|
||||
Socket::init();
|
||||
interactiveMain(url);
|
||||
return 0;
|
||||
}
|
||||
|
@ -254,7 +254,6 @@ namespace ix
|
||||
int ws_receive_main(const std::string& url,
|
||||
bool enablePerMessageDeflate)
|
||||
{
|
||||
Socket::init();
|
||||
wsReceive(url, enablePerMessageDeflate);
|
||||
return 0;
|
||||
}
|
||||
|
@ -298,7 +298,6 @@ namespace ix
|
||||
bool throttle = false;
|
||||
bool enablePerMessageDeflate = false;
|
||||
|
||||
Socket::init();
|
||||
wsSend(url, path, enablePerMessageDeflate, throttle);
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user