mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-02-23 18:26:31 +00:00
fix
This commit is contained in:
@@ -44,7 +44,7 @@ static void _MemsinkObject_destroy_internals(_MemsinkObject *self) {
|
||||
us_memsink_shared_unmap(self->mem);
|
||||
self->mem = NULL;
|
||||
}
|
||||
if (self->fd > 0) {
|
||||
if (self->fd >= 0) {
|
||||
close(self->fd);
|
||||
self->fd = -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user