From 7a966c81bdcc8b6f79d611b73353387b774a8c53 Mon Sep 17 00:00:00 2001 From: John Emmas Date: Tue, 9 Jun 2015 16:25:20 +0100 Subject: [PATCH] Don't close OSC server sockets explicitly (the subsequent call to 'lo_server_free()' will close the socket anyway) --- libs/surfaces/osc/osc.cc | 8 -------- 1 file changed, 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; }