diff --git a/public/call.html b/public/call.html
index e7231fc..f0bf41b 100644
--- a/public/call.html
+++ b/public/call.html
@@ -422,17 +422,17 @@
// listen to audio from call
this.ws.onmessage = async (event) => {
- // do nothing if muted
- if(this.isSoundMuted){
- return;
- }
-
// get encoded codec2 bytes from websocket message
const encoded = await event.data.arrayBuffer();
// update stats
this.rxBytes += encoded.byteLength;
+ // do nothing if muted
+ if(this.isSoundMuted){
+ return;
+ }
+
// decode codec2 audio
const decoded = await Codec2Lib.runDecode(this.codecMode, encoded);