Skip to content

Commit

Permalink
Prevent event handler go routine leak
Browse files Browse the repository at this point in the history
[#85810836]

Signed-off-by: Georgi Sabev <[email protected]>
  • Loading branch information
emalm committed Jan 26, 2015
1 parent c24d57b commit 5b3337a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/event_stream_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (h *EventStreamHandler) EventStream(w http.ResponseWriter, req *http.Reques
flusher.Flush()

eventID := 0
errChan := make(chan error)
errChan := make(chan error, 1)
eventChan := make(chan receptor.Event)

for {
Expand Down

0 comments on commit 5b3337a

Please sign in to comment.