diff --git a/src/frontend/stmclient.cc b/src/frontend/stmclient.cc index 651cd3e..a57198c 100644 --- a/src/frontend/stmclient.cc +++ b/src/frontend/stmclient.cc @@ -284,7 +284,7 @@ void STMClient::output_new_frame( void ) local_framebuffer = tmp; } -bool STMClient::process_network_input( void ) +void STMClient::process_network_input( void ) { 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_send_interval( network->send_interval() ); 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 ) @@ -463,7 +461,7 @@ void STMClient::main( void ) } if ( network_ready_to_read ) { - if ( !process_network_input() ) { return; } + process_network_input(); } if ( sel.read( STDIN_FILENO ) ) { diff --git a/src/frontend/stmclient.h b/src/frontend/stmclient.h index 187b4f5..1707f18 100644 --- a/src/frontend/stmclient.h +++ b/src/frontend/stmclient.h @@ -68,7 +68,7 @@ private: bool clean_shutdown; void main_init( void ); - bool process_network_input( void ); + void process_network_input( void ); bool process_user_input( int fd ); bool process_resize( void );