Browse Source
Improve logging when closing RPC server
skip-invalid-blocks
Roman Zeyde
6 years ago
No known key found for this signature in database
GPG Key ID: 87CAE5FA46917CBB
1 changed files with
2 additions and
1 deletions
-
src/rpc.rs
|
|
@ -551,10 +551,11 @@ impl RPC { |
|
|
|
info!("[{}] disconnected peer", addr); |
|
|
|
})); |
|
|
|
} |
|
|
|
trace!("closing RPC connections"); |
|
|
|
trace!("closing {} RPC connections", senders.lock().unwrap().len()); |
|
|
|
for sender in senders.lock().unwrap().iter() { |
|
|
|
let _ = sender.send(Message::Done); |
|
|
|
} |
|
|
|
trace!("waiting for {} RPC handling threads", children.len()); |
|
|
|
for child in children { |
|
|
|
let _ = child.join(); |
|
|
|
} |
|
|
|