Remove a Network::Exception that isn't one.

Code smell pointed out by Coverity.
This commit is contained in:
John Hood
2016-11-19 20:59:49 -05:00
parent 4fe706a4d3
commit 24eb5a7544
6 changed files with 25 additions and 33 deletions
+4 -6
View File
@@ -187,10 +187,8 @@ namespace Network {
double SRTT;
double RTTVAR;
/* Exception from send(), to be delivered if the frontend asks for it,
without altering control flow. */
bool have_send_exception;
NetworkException send_exception;
/* Error from send()/sendto(). */
string send_error;
Packet new_packet( const string &s_payload );
@@ -226,9 +224,9 @@ namespace Network {
const Addr &get_remote_addr( void ) const { return remote_addr; }
socklen_t get_remote_addr_len( void ) const { return remote_addr_len; }
const NetworkException *get_send_exception( void ) const
string &get_send_error( void )
{
return have_send_exception ? &send_exception : NULL;
return send_error;
}
void set_last_roundtrip_success( uint64_t s_success ) { last_roundtrip_success = s_success; }