Skip to content

Commit

Permalink
Fix interactive console becoming unresponsive after ";" query. Closes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
kaidaguerre committed Jul 29, 2021
1 parent fe304da commit f71a5dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions interactive/interactive_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,8 @@ func (c *InteractiveClient) getQuery(line string) (string, error) {

// if the line is ONLY a semicolon, do nothing and restart interactive session
if strings.TrimSpace(query) == ";" {
// TACTICAL: mark result streamer as done so we do not wait for it before restarting prompt
c.resultsStreamer.Done()
c.restartInteractiveSession()
return "", nil
}
Expand Down

0 comments on commit f71a5dd

Please sign in to comment.