Skip to content

Commit

Permalink
Merge pull request #183 from MisterTea/fix_jumphost_hang
Browse files Browse the repository at this point in the history
fix hang in jumphost (similar to 15a14d2 )
  • Loading branch information
ailzhang authored Apr 16, 2019
2 parents 4196ec7 + eff9bad commit 6c8f90c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/terminal/TerminalServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ void runJumpHost(shared_ptr<ServerClientConnection> serverClientState) {
if (serverClientState->hasData()) {
VLOG(4) << "Jumphost serverClientState has data";
string message;
if (!serverClientState->readMessage(&message)) {
break;
if (!serverClientState->read(&message)) {
continue;
}
try {
terminalSocketHandler->writeMessage(terminalFd, message);
Expand Down

0 comments on commit 6c8f90c

Please sign in to comment.