summaryrefslogtreecommitdiff
path: root/src/WebRTCLibDataChannel.cpp
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-07-09 18:42:30 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-07-09 18:55:32 +0200
commit69f92fa26c7bef3b042d8da5e520fe60b22e01b7 (patch)
tree3157fbaec9bb148c64cb4fd3fa40bad6e8ad3864 /src/WebRTCLibDataChannel.cpp
parentd06e536d12bd6eff02de4fdfbba86f25d1c048fc (diff)
downloadfork-godot-webrtc-native-69f92fa26c7bef3b042d8da5e520fe60b22e01b7.tar.gz
fork-godot-webrtc-native-69f92fa26c7bef3b042d8da5e520fe60b22e01b7.tar.bz2
fork-godot-webrtc-native-69f92fa26c7bef3b042d8da5e520fe60b22e01b7.zip
Run clang-format on src/*
Diffstat (limited to 'src/WebRTCLibDataChannel.cpp')
-rw-r--r--src/WebRTCLibDataChannel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/WebRTCLibDataChannel.cpp b/src/WebRTCLibDataChannel.cpp
index 7cbf3b7..f29d562 100644
--- a/src/WebRTCLibDataChannel.cpp
+++ b/src/WebRTCLibDataChannel.cpp
@@ -70,7 +70,6 @@ WebRTCLibDataChannel *WebRTCLibDataChannel::new_data_channel(rtc::scoped_refptr<
return tmp;
}
-
void WebRTCLibDataChannel::bind_channel(rtc::scoped_refptr<webrtc::DataChannelInterface> p_channel) {
ERR_FAIL_COND(p_channel.get() == nullptr);
@@ -150,7 +149,7 @@ godot_error WebRTCLibDataChannel::poll() {
}
void WebRTCLibDataChannel::close() {
- if(channel.get() != nullptr) {
+ if (channel.get() != nullptr) {
channel->Close();
channel->UnregisterObserver();
}
@@ -197,7 +196,8 @@ void WebRTCLibDataChannel::_init() {
register_interface(&interface);
}
-WebRTCLibDataChannel::WebRTCLibDataChannel() : observer(this) {
+WebRTCLibDataChannel::WebRTCLibDataChannel() :
+ observer(this) {
mutex = new std::mutex;
}