Skip to content

Commit

Permalink
Merge branch 'status-listen-bug'
Browse files Browse the repository at this point in the history
  • Loading branch information
faern committed Jul 18, 2024
2 parents 3f2ff89 + 860ad97 commit 3218b46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ Line wrap the file at 100 chars. Th
- Update Electron from 28.1.3 to 30.0.4.

### Fixed
- Fix mullvad cli bug causing `mullvad status listen` command to miss events if they occurred
too quickly.

#### Windows
- Fix race condition that could result in crashes when DAITA was enabled during disconnects.

Expand Down
3 changes: 2 additions & 1 deletion mullvad-cli/src/cmds/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ impl Status {
pub async fn listen(mut rpc: MullvadProxyClient, args: StatusArgs) -> Result<()> {
let mut previous_tunnel_state = None;

while let Some(event) = rpc.events_listen().await?.next().await {
let mut event_stream = rpc.events_listen().await?;
while let Some(event) = event_stream.next().await {
match event? {
DaemonEvent::TunnelState(new_state) => {
if args.debug {
Expand Down

0 comments on commit 3218b46

Please sign in to comment.