Change timeout from -1 to INT_MAX in TransportSender

This allows min() to work properly on timeouts.
This commit is contained in:
Keegan McAllister
2012-03-06 01:20:14 -08:00
parent e35733a2c1
commit 12fcf6800a
+1 -1
View File
@@ -112,7 +112,7 @@ int TransportSender<MyState>::wait_time( void )
uint64_t now = timestamp();
if ( !connection->get_has_remote_addr() ) {
return -1;
return INT_MAX;
}
if ( next_wakeup > now ) {