Skip to content

Commit dcbde9c

Browse files
authored
fix: React to CLOSE messages (vishen#167)
1 parent 3dabd37 commit dcbde9c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

application/application.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,9 @@ func (a *Application) recvMessages() {
292292
}
293293
a.volumeReceiver = &resp.Status.Volume
294294
}
295+
case "CLOSE":
296+
a.MediaFinished()
297+
a.application, a.media, a.volumeReceiver = nil, nil, nil
295298
}
296299
// Relay the event to any user specified message funcs.
297300
a.messageChan <- msg

0 commit comments

Comments
 (0)