From 3e2e9a8182d02be78d58132c0f75b568944dbc88 Mon Sep 17 00:00:00 2001 From: BroodjeAap Date: Sat, 25 Jul 2020 12:16:33 +0000 Subject: [PATCH] removed some commented out code --- stream.go | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/stream.go b/stream.go index 1a3d454..16fd4d5 100755 --- a/stream.go +++ b/stream.go @@ -39,25 +39,6 @@ func NewStream(Name string, URL string) *Stream { WatchAreas: make([]WatchArea, 0), Timeouts: 0, } - /* - stream.WatchAreas = append(stream.WatchAreas, - WatchArea{ - Name: "test", - Color: color.RGBA{255, 0, 255, 255}, - Area: image.Rect(30, 30, 400, 200), - }, - WatchArea{ - Name: "test2", - Color: color.RGBA{0, 255, 255, 255}, - Area: image.Rect(800, 30, 1000, 500), - }, - WatchArea{ - Name: "test3", - Color: color.RGBA{255, 255, 0, 255}, - Area: image.Rect(50, 400, 450, 700), - }, - ) - */ stream.WriteStreamJSON() return &stream } @@ -80,9 +61,8 @@ func (s *Stream) Update() { log.Println(err) s.Timeouts++ return - } else { - s.Timeouts = 0 } + s.Timeouts = 0 img, err := ioutil.ReadAll(resp.Body) defer resp.Body.Close()