mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
always end watch steam
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
parent
1c2298f2af
commit
0c7c765469
@ -49,16 +49,13 @@ class ApiWatcher {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private doneHandler(error: Error) {
|
private doneHandler(error: Error) {
|
||||||
if (error) {
|
if (error) logger.warn("watch ended: " + error.toString())
|
||||||
logger.error("watch error: " + error.toString())
|
|
||||||
this.sendEvent({
|
this.sendEvent({
|
||||||
type: "STREAM_END",
|
type: "STREAM_END",
|
||||||
url: this.apiUrl,
|
url: this.apiUrl,
|
||||||
status: 410,
|
status: 410,
|
||||||
})
|
})
|
||||||
return
|
|
||||||
}
|
|
||||||
this.start()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private sendEvent(evt: any) {
|
private sendEvent(evt: any) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user