summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2016-01-15 01:41:44 +0100
committerJavier <dev.git@javispedro.com>2016-01-15 01:41:44 +0100
commit365f98a9f973f5ead0886073ebcaa9bf7c5f0f47 (patch)
tree15382f18006098f39052c10b657386df46f19e3d
parentb41e73a1565ff9edd45f814a4b535020c04b1b15 (diff)
downloadlibgato-365f98a9f973f5ead0886073ebcaa9bf7c5f0f47.tar.gz
libgato-365f98a9f973f5ead0886073ebcaa9bf7c5f0f47.zip
actually close sockets during close
-rw-r--r--gatosocket.cpp1
-rw-r--r--rpm/libgato.spec2
-rw-r--r--rpm/libgato.yaml2
3 files changed, 3 insertions, 2 deletions
diff --git a/gatosocket.cpp b/gatosocket.cpp
index 19f11ff..da3721d 100644
--- a/gatosocket.cpp
+++ b/gatosocket.cpp
@@ -128,6 +128,7 @@ void GatoSocket::close()
delete writeNotifier;
readQueue.clear();
writeQueue.clear();
+ ::close(fd);
fd = -1;
s = StateDisconnected;
emit disconnected();
diff --git a/rpm/libgato.spec b/rpm/libgato.spec
index 669579b..5b8584f 100644
--- a/rpm/libgato.spec
+++ b/rpm/libgato.spec
@@ -13,7 +13,7 @@ Name: libgato
%{!?qtc_make:%define qtc_make make}
%{?qtc_builddir:%define _builddir %qtc_builddir}
Summary: A GATT library to connect with Bluetooth Smart devices
-Version: 0.1.6
+Version: 0.1.7
Release: 1
Group: Qt/Qt
License: GPL2
diff --git a/rpm/libgato.yaml b/rpm/libgato.yaml
index 3b13a5c..3d1c092 100644
--- a/rpm/libgato.yaml
+++ b/rpm/libgato.yaml
@@ -1,6 +1,6 @@
Name: libgato
Summary: A GATT library to connect with Bluetooth Smart devices
-Version: 0.1.6
+Version: 0.1.7
Release: 1
Group: Qt/Qt
URL: https://gitorious.org/gato/