Get working console websocket implementation and fix race condition
This commit is contained in:
@@ -228,7 +228,7 @@ func (d *DockerEnvironment) FollowConsoleOutput() error {
|
||||
|
||||
s := bufio.NewScanner(r)
|
||||
for s.Scan() {
|
||||
fmt.Println(s.Text())
|
||||
d.Server.Emit(ConsoleOutputEvent, s.Text())
|
||||
}
|
||||
|
||||
if err := s.Err(); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user