diff options
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/connection.cpp | 2 | ||||
-rw-r--r-- | src/network/connection.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/network/connection.cpp b/src/network/connection.cpp index a74e96784..77ce34bfd 100644 --- a/src/network/connection.cpp +++ b/src/network/connection.cpp @@ -1281,7 +1281,7 @@ bool ConnectionSendThread::packetsQueued() continue; for (Channel &channel : (dynamic_cast<UDPPeer *>(&peer))->channels) { - if (channel.queued_commands.size() > 0) { + if (!channel.queued_commands.empty()) { return true; } } diff --git a/src/network/connection.h b/src/network/connection.h index c64272035..c0a39f313 100644 --- a/src/network/connection.h +++ b/src/network/connection.h @@ -604,7 +604,7 @@ public: class PeerHelper { public: - PeerHelper() = default;; + PeerHelper() = default; PeerHelper(Peer* peer); ~PeerHelper(); |