Skip to content

Commit

Permalink
Fixed formatting
Browse files Browse the repository at this point in the history
paullouisageneau committed Aug 26, 2019
1 parent 611c531 commit d2a3084
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/peerconnection.cpp
Original file line number Diff line number Diff line change
@@ -35,8 +35,7 @@ using std::shared_ptr;
PeerConnection::PeerConnection(const IceConfiguration &config)
: mConfig(config), mCertificate(make_certificate("libdatachannel")), mMid("0") {}

PeerConnection::~PeerConnection() {
}
PeerConnection::~PeerConnection() {}

const IceConfiguration *PeerConnection::config() const { return &mConfig; }

@@ -110,9 +109,9 @@ void PeerConnection::initDtlsTransport() {
}

void PeerConnection::initSctpTransport() {
mSctpTransport = std::make_shared<SctpTransport>(
mDtlsTransport, std::bind(&PeerConnection::openDataChannels, this),
std::bind(&PeerConnection::forwardMessage, this, _1));
mSctpTransport = std::make_shared<SctpTransport>(
mDtlsTransport, std::bind(&PeerConnection::openDataChannels, this),
std::bind(&PeerConnection::forwardMessage, this, _1));
}

bool PeerConnection::checkFingerprint(const std::string &fingerprint) const {
@@ -133,9 +132,9 @@ void PeerConnection::forwardMessage(message_ptr message) {
}

void PeerConnection::openDataChannels(void) {
for (auto it = mDataChannels.begin(); it != mDataChannels.end(); ++it) {
it->second->open();
}
for (auto it = mDataChannels.begin(); it != mDataChannels.end(); ++it) {
it->second->open();
}
}

void PeerConnection::triggerLocalDescription() {

0 comments on commit d2a3084

Please sign in to comment.