Skip to content
Snippets Groups Projects
Commit 31f0037f authored by Timothy Stack's avatar Timothy Stack
Browse files

Die when the garcia-pilot connection goes away

parent 13153d1b
No related branches found
No related tags found
No related merge requests found
...@@ -1269,6 +1269,7 @@ void pc_handle_signal(fd_set *rready, fd_set *wready) ...@@ -1269,6 +1269,7 @@ void pc_handle_signal(fd_set *rready, fd_set *wready)
struct mtp_packet mp; struct mtp_packet mp;
if (mtp_receive_packet(mh, &mp) != MTP_PP_SUCCESS) { if (mtp_receive_packet(mh, &mp) != MTP_PP_SUCCESS) {
fatal("lost pilot connection");
pc->pc_flags &= ~PCF_CONNECTED; pc->pc_flags &= ~PCF_CONNECTED;
pc->pc_flags |= PCF_CONNECTING; pc->pc_flags |= PCF_CONNECTING;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment