mirror of
https://github.com/schoebel/mars
synced 2024-12-26 08:32:24 +00:00
client: avoid blocking for shutdown
This commit is contained in:
parent
7618064cc4
commit
9d0db3beb7
@ -966,7 +966,11 @@ static int client_switch(struct client_brick *brick)
|
||||
if (brick->power.led_off)
|
||||
goto done;
|
||||
mars_power_led_on((void*)brick, false);
|
||||
if (atomic_read(&brick->sender_count))
|
||||
goto done;
|
||||
_kill_bundle(&output->bundle);
|
||||
if (atomic_read(&brick->receiver_count))
|
||||
goto done;
|
||||
_do_timeout_all(output, true);
|
||||
output->got_info = false;
|
||||
brick->connection_state = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user