summaryrefslogtreecommitdiffstats
path: root/src/Net/Connection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Net/Connection.cpp')
-rw-r--r--src/Net/Connection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Net/Connection.cpp b/src/Net/Connection.cpp
index bc38ed2..49b51b4 100644
--- a/src/Net/Connection.cpp
+++ b/src/Net/Connection.cpp
@@ -55,7 +55,7 @@ bool Connection::recieve() {
return false;
while(true) {
- if(!gnutls_record_check_pending(getSession()))
+ if(!dataPending())
return false;
if(read < sizeof(Packet::Data)) {