Skip to content

Commit 622cf8a

Browse files
committed
Fix issue where dest would be called while undef
1 parent dde19fa commit 622cf8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/library_sockfs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ addToLibrary({
642642
#if SOCKET_DEBUG
643643
dbg(`websocket: queuing (${length} bytes): ${new Uint8Array(data)}`);
644644
#endif
645-
dest.msg_send_queue.push(data);
645+
dest?.msg_send_queue.push(data);
646646
return length;
647647
}
648648

0 commit comments

Comments
 (0)