mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-18 12:46:32 +01:00
Don't close OSC server sockets explicitly (the subsequent call to 'lo_server_free()' will close the socket anyway)
This commit is contained in:
parent
801af5df9e
commit
7a966c81bd
1 changed files with 0 additions and 8 deletions
|
|
@ -277,19 +277,11 @@ OSC::stop ()
|
||||||
BaseUI::quit ();
|
BaseUI::quit ();
|
||||||
|
|
||||||
if (_osc_server) {
|
if (_osc_server) {
|
||||||
int fd = lo_server_get_socket_fd(_osc_server);
|
|
||||||
if (fd >=0) {
|
|
||||||
close(fd);
|
|
||||||
}
|
|
||||||
lo_server_free (_osc_server);
|
lo_server_free (_osc_server);
|
||||||
_osc_server = 0;
|
_osc_server = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_osc_unix_server) {
|
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);
|
lo_server_free (_osc_unix_server);
|
||||||
_osc_unix_server = 0;
|
_osc_unix_server = 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue