afb-proto-ws: Fix unclosed file descriptor
[src/app-framework-binder.git] / src / afb-proto-ws.c
index 3c8922c..0903976 100644 (file)
@@ -1059,6 +1059,7 @@ static void on_hangup(void *closure)
        }
 
        if (protows->fd >= 0) {
+               close(protows->fd);
                protows->fd = -1;
                if (protows->on_hangup)
                        protows->on_hangup(protows->closure);