mirror of
https://github.com/saily/vnc-recorder.git
synced 2025-04-27 18:25:13 +00:00
catch error on input.Close()
Signed-off-by: Daniel Widerin <daniel@widerin.net>
This commit is contained in:
parent
7d44e0fe9f
commit
b9d58c7e3c
@ -171,5 +171,9 @@ func (enc *X264ImageCustomEncoder) Close() {
|
||||
return
|
||||
}
|
||||
enc.closed = true
|
||||
enc.input.Close()
|
||||
err := enc.input.Close()
|
||||
if err != nil {
|
||||
log.Error("could not close input", err)
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user