STMClient::process_network_input: Return void, instead of always true
This function has never in its history had a codepath returning false.
This commit is contained in:
committed by
John Hood
parent
4b75bcfdd9
commit
a38b6f61d5
@@ -284,7 +284,7 @@ void STMClient::output_new_frame( void )
|
|||||||
local_framebuffer = tmp;
|
local_framebuffer = tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool STMClient::process_network_input( void )
|
void STMClient::process_network_input( void )
|
||||||
{
|
{
|
||||||
network->recv();
|
network->recv();
|
||||||
|
|
||||||
@@ -295,8 +295,6 @@ bool STMClient::process_network_input( void )
|
|||||||
overlays.get_prediction_engine().set_local_frame_acked( network->get_sent_state_acked() );
|
overlays.get_prediction_engine().set_local_frame_acked( network->get_sent_state_acked() );
|
||||||
overlays.get_prediction_engine().set_send_interval( network->send_interval() );
|
overlays.get_prediction_engine().set_send_interval( network->send_interval() );
|
||||||
overlays.get_prediction_engine().set_local_frame_late_acked( network->get_latest_remote_state().state.get_echo_ack() );
|
overlays.get_prediction_engine().set_local_frame_late_acked( network->get_latest_remote_state().state.get_echo_ack() );
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool STMClient::process_user_input( int fd )
|
bool STMClient::process_user_input( int fd )
|
||||||
@@ -463,7 +461,7 @@ void STMClient::main( void )
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( network_ready_to_read ) {
|
if ( network_ready_to_read ) {
|
||||||
if ( !process_network_input() ) { return; }
|
process_network_input();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( sel.read( STDIN_FILENO ) ) {
|
if ( sel.read( STDIN_FILENO ) ) {
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ private:
|
|||||||
bool clean_shutdown;
|
bool clean_shutdown;
|
||||||
|
|
||||||
void main_init( void );
|
void main_init( void );
|
||||||
bool process_network_input( void );
|
void process_network_input( void );
|
||||||
bool process_user_input( int fd );
|
bool process_user_input( int fd );
|
||||||
bool process_resize( void );
|
bool process_resize( void );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user