removed some commented out code
This commit is contained in:
parent
b0a900f36f
commit
3e2e9a8182
1 changed files with 1 additions and 21 deletions
22
stream.go
22
stream.go
|
|
@ -39,25 +39,6 @@ func NewStream(Name string, URL string) *Stream {
|
||||||
WatchAreas: make([]WatchArea, 0),
|
WatchAreas: make([]WatchArea, 0),
|
||||||
Timeouts: 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()
|
stream.WriteStreamJSON()
|
||||||
return &stream
|
return &stream
|
||||||
}
|
}
|
||||||
|
|
@ -80,9 +61,8 @@ func (s *Stream) Update() {
|
||||||
log.Println(err)
|
log.Println(err)
|
||||||
s.Timeouts++
|
s.Timeouts++
|
||||||
return
|
return
|
||||||
} else {
|
|
||||||
s.Timeouts = 0
|
|
||||||
}
|
}
|
||||||
|
s.Timeouts = 0
|
||||||
img, err := ioutil.ReadAll(resp.Body)
|
img, err := ioutil.ReadAll(resp.Body)
|
||||||
defer resp.Body.Close()
|
defer resp.Body.Close()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue