Permalink
Browse files

serve: Remove dead store of bytes_read

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
  • Loading branch information...
1 parent d6ff754 commit b9763b69972c0c01793d6731430d83b963859541 @andersk andersk committed with keithw Jan 26, 2013
Showing with 0 additions and 1 deletion.
  1. +0 −1 src/frontend/mosh-server.cc
@@ -633,7 +633,6 @@ void serve( int host_fd, Terminal::Complete &terminal, ServerConnection &network
/* If the pty slave is closed, reading from the master can fail with
EIO (see #264). So we treat errors on read() like EOF. */
if ( bytes_read <= 0 ) {
- bytes_read = 0;
network.start_shutdown();
} else {
string terminal_to_host = terminal.act( string( buf, bytes_read ) );

0 comments on commit b9763b6

Please sign in to comment.