Skip to content

Commit

Permalink
handle acks better
Browse files Browse the repository at this point in the history
  • Loading branch information
furudean committed Nov 23, 2024
1 parent b7dfe87 commit c0c0506
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib/socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,24 +332,25 @@ export class WarpSocketService {
'Always ignore'
)

this.ackd_processes.add(socket_pid)

if (picked === 'Always connect') {
await set_config(
'autoConnectExternalProcesses',
'Always connect'
)
}
if (['Ignore', undefined].includes(picked)) {
this.ackd_processes.add(socket_pid)
return false
}
if (picked === 'Always ignore') {
this.ackd_processes.add(socket_pid)
await set_config(
'autoConnectExternalProcesses',
'Never connect'
)
}
} else if (auto_connect_setting === 'Never connect') {
this.ackd_processes.add(socket_pid)
return false
}
}
Expand Down

0 comments on commit c0c0506

Please sign in to comment.