Skip to content

Commit

Permalink
Fix Peer not open error
Browse files Browse the repository at this point in the history
  • Loading branch information
gdbroman committed Aug 3, 2023
1 parent d81100b commit 3333dad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/renderer/apps/Rooms/store/Peer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ export class PeerClass extends EventsEmitter {
@action
sendData(data: Partial<DataPacket>) {
try {
if (this.peer) {
if (this.peer && this.peer.connected) {
this.peer.send(serialize(data));
}
} catch (e) {
Expand Down

0 comments on commit 3333dad

Please sign in to comment.