summaryrefslogtreecommitdiff
path: root/src/WebRTCPeer.cpp
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2018-08-12 16:31:44 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2018-08-12 16:59:59 +0200
commit662ceddd518faab8137d922e29030dc3fa1e34e2 (patch)
treea9c7a17b4a14f83f67bb02a82237558633ce7c77 /src/WebRTCPeer.cpp
parent1885036052b24cbe804bb829a32ba2617eac3fe4 (diff)
downloadfork-godot-webrtc-native-662ceddd518faab8137d922e29030dc3fa1e34e2.tar.gz
fork-godot-webrtc-native-662ceddd518faab8137d922e29030dc3fa1e34e2.tar.bz2
fork-godot-webrtc-native-662ceddd518faab8137d922e29030dc3fa1e34e2.zip
Fix interface binding
Diffstat (limited to 'src/WebRTCPeer.cpp')
-rw-r--r--src/WebRTCPeer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/WebRTCPeer.cpp b/src/WebRTCPeer.cpp
index 5eada1f..38303e1 100644
--- a/src/WebRTCPeer.cpp
+++ b/src/WebRTCPeer.cpp
@@ -61,12 +61,12 @@ void WebRTCPeer::_register_methods() { }
void WebRTCPeer::_init() {
printf("Binding PacketPeer interface");
- godot_net_bind_webrtc_peer(_owner, &interface);
+ register_interface(&interface);
}
WebRTCPeer::~WebRTCPeer() {
if (_owner) {
printf("Unbinding PacketPeer interface");
- godot_net_bind_webrtc_peer(_owner, NULL);
+ register_interface(NULL);
}
}