mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-15 02:44:20 -05:00
remove some exit(1)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2425 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
5de1f4db50
commit
be5957742c
@ -143,7 +143,7 @@ std::list<std::string> getLocalInterfaces()
|
||||
{
|
||||
pqioutput(PQL_ALERT, pqinetzone,
|
||||
"Cannot Determine Local Addresses!");
|
||||
exit(1);
|
||||
return addrs;
|
||||
}
|
||||
|
||||
if (!ifptr)
|
||||
|
@ -213,7 +213,6 @@ int pqissllistenbase::setuplisten()
|
||||
pqioutput(PQL_ALERT, pqissllistenzone, out.str());
|
||||
std::cerr << out.str() << std::endl;
|
||||
|
||||
exit(1);
|
||||
return -1;
|
||||
}
|
||||
else
|
||||
@ -232,7 +231,6 @@ int pqissllistenbase::setuplisten()
|
||||
pqioutput(PQL_ALERT, pqissllistenzone, out.str());
|
||||
std::cerr << out.str() << std::endl;
|
||||
|
||||
exit(1);
|
||||
return -1;
|
||||
}
|
||||
else
|
||||
|
@ -1818,7 +1818,7 @@ int TcpStream::toSend(TcpPacket *pkt, bool retrans)
|
||||
std::cerr << "TcpStream::toSend() peerUnknown ERROR!!!";
|
||||
std::cerr << std::endl;
|
||||
#endif
|
||||
exit(1);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* get accurate timestamp */
|
||||
@ -1908,7 +1908,7 @@ int TcpStream::retrans()
|
||||
std::cerr << "TcpStream::retrans() peerUnknown ERROR!!!";
|
||||
std::cerr << std::endl;
|
||||
#endif
|
||||
exit(1);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* now retrans */
|
||||
|
@ -72,7 +72,7 @@ int tou_init(const struct sockaddr *my_addr, socklen_t addrlen)
|
||||
<< inet_ntoa(addr->sin_addr) << ":" << ntohs(addr->sin_port);
|
||||
std::cerr << std::endl;
|
||||
|
||||
exit(1);
|
||||
return 0;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
@ -198,11 +198,6 @@ int tou_socket(int /*domain*/, int /*type*/, int /*protocol*/)
|
||||
tou -> lasterrno = EUSERS;
|
||||
|
||||
return -1;
|
||||
|
||||
#ifdef DEBUG_TOU_INTERFACE
|
||||
std::cerr << "tou_socket() FAILED" << std::endl;
|
||||
exit(1);
|
||||
#endif
|
||||
}
|
||||
|
||||
/* bind - opens the udp port */
|
||||
|
Loading…
Reference in New Issue
Block a user