mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 04:01:36 +08:00
Closing files that should be closed
This commit is contained in:
@@ -319,6 +319,8 @@ void print_status()
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
close(state_sub);
|
||||||
|
|
||||||
|
|
||||||
warnx("arming: %s", armed_str);
|
warnx("arming: %s", armed_str);
|
||||||
}
|
}
|
||||||
@@ -1764,5 +1766,7 @@ void *commander_low_prio_loop(void *arg)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
close(cmd_sub);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user