diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-09-08 20:05:38 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-09-08 20:05:38 +0200 |
commit | c3bb6960e6f85d07d65fefdfebfdc0650e81aa92 (patch) | |
tree | 105912b892a8955aaeb3e8fd6623ff45f6fbcea4 /src/modules/mavlink/orb_listener.c | |
parent | 56a35cc8896b077e70226541a43aa0d449e8d9bb (diff) | |
download | px4-firmware-c3bb6960e6f85d07d65fefdfebfdc0650e81aa92.tar.gz px4-firmware-c3bb6960e6f85d07d65fefdfebfdc0650e81aa92.tar.bz2 px4-firmware-c3bb6960e6f85d07d65fefdfebfdc0650e81aa92.zip |
Fixed mavlink start / stop to ensure process is in a sane state once NSH return
Diffstat (limited to 'src/modules/mavlink/orb_listener.c')
-rw-r--r-- | src/modules/mavlink/orb_listener.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/mavlink/orb_listener.c b/src/modules/mavlink/orb_listener.c index 53d86ec00..d11a67fc6 100644 --- a/src/modules/mavlink/orb_listener.c +++ b/src/modules/mavlink/orb_listener.c @@ -829,5 +829,7 @@ uorb_receive_start(void) pthread_t thread; pthread_create(&thread, &uorb_attr, uorb_receive_thread, NULL); + + pthread_attr_destroy(&uorb_attr); return thread; } |