Skip to content

Commit

Permalink
fix one more deadlock in sling-stop
Browse files Browse the repository at this point in the history
  • Loading branch information
daywalker90 committed Mar 28, 2024
1 parent ceb1073 commit ce35fe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rpc_sling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ pub async fn slingstop(
serde_json::Value::String(stop_id) => {
let scid = ShortChannelId::from_str(stop_id)?;
{
let mut job_states = p.state().job_state.lock();
let mut job_states = p.state().job_state.lock().clone();
if job_states.contains_key(&scid) {
let jobstate = job_states.get_mut(&scid).unwrap();
stopped_count = jobstate.len();
Expand Down

0 comments on commit ce35fe5

Please sign in to comment.