Process resize entirely on server
This commit is contained in:
@@ -42,6 +42,10 @@ void Transport<MyState, RemoteState>::recv( void )
|
||||
if ( fragments.add_fragment( frag ) ) { /* complete packet */
|
||||
Instruction inst = fragments.get_assembly();
|
||||
|
||||
if ( inst.protocol_version() != MOSH_PROTOCOL_VERSION ) {
|
||||
throw NetworkException( "Mosh protocol version mismatch", 0 );
|
||||
}
|
||||
|
||||
sender.process_acknowledgment_through( inst.ack_num() );
|
||||
|
||||
/* first, make sure we don't already have the new state */
|
||||
|
||||
Reference in New Issue
Block a user