mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-09 17:19:59 +00:00
Refactor media message handling
This commit is contained in:
@@ -138,6 +138,14 @@ export default class Session {
|
||||
wasError = true;
|
||||
}
|
||||
|
||||
if (message.data.message.type === "STOP") {
|
||||
if (this.clientHeartbeatIntervalId) {
|
||||
clearInterval(this.clientHeartbeatIntervalId);
|
||||
}
|
||||
|
||||
this.client.close();
|
||||
}
|
||||
|
||||
this.sendMessage("shim:session/sendReceiverMessageResponse", {
|
||||
messageId: message.data.messageId
|
||||
, wasError
|
||||
|
||||
Reference in New Issue
Block a user