Skip to content

Commit

Permalink
fix: React to CLOSE messages (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 authored Aug 28, 2023
1 parent 3dabd37 commit dcbde9c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions application/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,9 @@ func (a *Application) recvMessages() {
}
a.volumeReceiver = &resp.Status.Volume
}
case "CLOSE":
a.MediaFinished()
a.application, a.media, a.volumeReceiver = nil, nil, nil
}
// Relay the event to any user specified message funcs.
a.messageChan <- msg
Expand Down

0 comments on commit dcbde9c

Please sign in to comment.