mirror of
https://github.com/schoebel/mars
synced 2025-01-10 16:29:26 +00:00
main: hold remote_trigger on failure
This commit is contained in:
parent
6177b74fee
commit
0cb5fb0179
@ -2169,13 +2169,13 @@ int peer_thread(void *data)
|
|||||||
status = 0;
|
status = 0;
|
||||||
if (peer->to_remote_trigger) {
|
if (peer->to_remote_trigger) {
|
||||||
pause_time = 0;
|
pause_time = 0;
|
||||||
peer->to_remote_trigger = false;
|
|
||||||
MARS_DBG("sending notify to peer...\n");
|
MARS_DBG("sending notify to peer...\n");
|
||||||
cmd.cmd_code = CMD_NOTIFY;
|
cmd.cmd_code = CMD_NOTIFY;
|
||||||
status = mars_send_struct(&peer->socket, &cmd, mars_cmd_meta);
|
status = mars_send_struct(&peer->socket, &cmd, mars_cmd_meta);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (likely(status >= 0)) {
|
if (likely(status >= 0)) {
|
||||||
|
peer->to_remote_trigger = false;
|
||||||
cmd.cmd_code = CMD_GETENTS;
|
cmd.cmd_code = CMD_GETENTS;
|
||||||
status = mars_send_struct(&peer->socket, &cmd, mars_cmd_meta);
|
status = mars_send_struct(&peer->socket, &cmd, mars_cmd_meta);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user