diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2018-08-12 16:31:44 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2018-08-12 16:59:59 +0200 |
commit | 662ceddd518faab8137d922e29030dc3fa1e34e2 (patch) | |
tree | a9c7a17b4a14f83f67bb02a82237558633ce7c77 /src/WebRTCPeer.cpp | |
parent | 1885036052b24cbe804bb829a32ba2617eac3fe4 (diff) | |
download | fork-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.cpp | 4 |
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); } } |