Fix double take

This commit is contained in:
Agus Zubiaga 2025-08-07 11:43:45 -03:00
parent 3925aa9b29
commit cace7de723

View file

@ -269,7 +269,7 @@ impl AgentConnection for ClaudeAgentConnection {
let request_id = new_request_id();
let turn_state = session.turn_state.take();
let TurnState::InProgress { end_tx } = session.turn_state.take() else {
let TurnState::InProgress { end_tx } = turn_state else {
// Already cancelled or idle, put it back
session.turn_state.replace(turn_state);
return;