13
0

switch from using Sleep/usleep to Glib::usleep()

This commit is contained in:
Paul Davis 2013-12-03 10:24:05 -05:00
parent 22175630bb
commit 0258f2958b

View File

@ -21,6 +21,8 @@
#include <boost/scoped_ptr.hpp>
#include <jack/session.h>
#include <glibmm/timer.h>
#include "pbd/epa.h"
#include "jack_connection.h"
@ -145,11 +147,7 @@ JackConnection::close ()
_jack = 0;
/* If we started JACK, it will be closing down */
#ifdef PLATFORM_WINDOWS
Sleep(500);
#else
usleep (500000);
#endif
Glib::usleep (500000);
Disconnected (""); /* EMIT SIGNAL */