Skip to content

Commit 52ba3bb

Browse files
committed
Always hold and release session, unnecessarily.
1 parent 9da389a commit 52ba3bb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/frontend/stmclient.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,8 @@ void STMClient::main_init( void )
257257

258258
network->set_send_delay( 1 ); /* minimal delay on outgoing keystrokes */
259259

260+
/* Hold session until further notice */
261+
network->get_current_state().push_back( Parser::HoldSession( true ) );
260262
/* tell server the size of the terminal */
261263
network->get_current_state().push_back( Parser::Resize( window_size.ws_col, window_size.ws_row ) );
262264

@@ -267,6 +269,8 @@ void STMClient::main_init( void )
267269
/* send server the wcwidth overlay */
268270
network->get_current_state().
269271
push_back( Parser::ChWidthOverlay( network_overlay ) );
272+
/* Release session. (In a future version of Mosh, this might be in a later message.) */
273+
network->get_current_state().push_back( Parser::HoldSession( false ) );
270274

271275

272276
/* be noisy as necessary */

0 commit comments

Comments
 (0)