[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [snowflake/main] Emit non-pointer type event



commit 8d2f662c8c04b1e7e6abc626ac9bd3677055d1f8
Author: Shelikhoo <xiaokangwang@xxxxxxxxxxx>
Date:   Mon Dec 13 16:28:09 2021 +0000

    Emit non-pointer type event
---
 client/lib/webrtc.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/client/lib/webrtc.go b/client/lib/webrtc.go
index 01b85f5..328c3a9 100644
--- a/client/lib/webrtc.go
+++ b/client/lib/webrtc.go
@@ -202,7 +202,7 @@ func (c *WebRTCPeer) preparePeerConnection(config *webrtc.Configuration) error {
 		return err
 	}
 	dc.OnOpen(func() {
-		c.eventsLogger.OnNewSnowflakeEvent(&event.EventOnSnowflakeConnected{})
+		c.eventsLogger.OnNewSnowflakeEvent(event.EventOnSnowflakeConnected{})
 		log.Println("WebRTC: DataChannel.OnOpen")
 		close(c.open)
 	})
@@ -211,7 +211,7 @@ func (c *WebRTCPeer) preparePeerConnection(config *webrtc.Configuration) error {
 		c.Close()
 	})
 	dc.OnError(func(err error) {
-		c.eventsLogger.OnNewSnowflakeEvent(&event.EventOnSnowflakeConnectionFailed{Error: err})
+		c.eventsLogger.OnNewSnowflakeEvent(event.EventOnSnowflakeConnectionFailed{Error: err})
 	})
 	dc.OnMessage(func(msg webrtc.DataChannelMessage) {
 		if len(msg.Data) <= 0 {



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits