Adds break with container stopped

This commit is contained in:
Amir Raminfar
2020-07-19 17:08:33 -07:00
parent 95bc0072b5
commit cef015a722

View File

@@ -126,6 +126,7 @@ Loop:
select {
case message, ok := <-messages:
if !ok {
fmt.Fprintf(w, "event: container-stopped\ndata: end of stream\n\n")
break Loop
}
fmt.Fprintf(w, "data: %s\n", message)