summaryrefslogtreecommitdiff
path: root/libs/surfaces
diff options
context:
space:
mode:
authorJohn Emmas <johne53@tiscali.co.uk>2015-06-09 16:25:20 +0100
committerJohn Emmas <johne53@tiscali.co.uk>2015-06-09 16:25:20 +0100
commit7a966c81bdcc8b6f79d611b73353387b774a8c53 (patch)
tree5d8ac604f2559cd2118329547b299e4dcf1adb74 /libs/surfaces
parent801af5df9ecea574a580048041cb6200e595d7e8 (diff)
Don't close OSC server sockets explicitly (the subsequent call to 'lo_server_free()' will close the socket anyway)
Diffstat (limited to 'libs/surfaces')
-rw-r--r--libs/surfaces/osc/osc.cc8
1 files changed, 0 insertions, 8 deletions
diff --git a/libs/surfaces/osc/osc.cc b/libs/surfaces/osc/osc.cc
index 7942bace6d..5878b34d80 100644
--- a/libs/surfaces/osc/osc.cc
+++ b/libs/surfaces/osc/osc.cc
@@ -277,19 +277,11 @@ OSC::stop ()
BaseUI::quit ();
if (_osc_server) {
- int fd = lo_server_get_socket_fd(_osc_server);
- if (fd >=0) {
- close(fd);
- }
lo_server_free (_osc_server);
_osc_server = 0;
}
if (_osc_unix_server) {
- int fd = lo_server_get_socket_fd(_osc_unix_server);
- if (fd >=0) {
- close(fd);
- }
lo_server_free (_osc_unix_server);
_osc_unix_server = 0;
}