aboutsummaryrefslogtreecommitdiffhomepage
path: root/backends/artnet.c
diff options
context:
space:
mode:
Diffstat (limited to 'backends/artnet.c')
-rw-r--r--backends/artnet.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/backends/artnet.c b/backends/artnet.c
index f98ae96..d9ebfe5 100644
--- a/backends/artnet.c
+++ b/backends/artnet.c
@@ -77,6 +77,7 @@ static int artnet_listener(char* host, char* port){
flags = fcntl(fd, F_GETFL, 0);
if(fcntl(fd, F_SETFL, flags | O_NONBLOCK) < 0){
fprintf(stderr, "Failed to set ArtNet descriptor nonblocking\n");
+ close(fd);
return -1;
}