From b44611dda5ec17b4123513f165bb7dc5a9a99e9b Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Wed, 23 Mar 2016 13:14:33 -0700 Subject: [PATCH] Update stream.go --- controller/stream.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/controller/stream.go b/controller/stream.go index 8d87083d..d6d2fea1 100644 --- a/controller/stream.go +++ b/controller/stream.go @@ -92,6 +92,9 @@ func GetStream(c *gin.Context) { }() go func() { + defer func() { + recover() + }() <-c.Writer.CloseNotify() rc.Close() }()