summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-10-21 22:29:51 +0000
committerDavid Robillard <d@drobilla.net>2011-10-21 22:29:51 +0000
commit20b765b8befa32eed913e16d68f03a65459a605d (patch)
tree955dda8e59707c7dc0149288b31187d071518ce4 /src/gui
parente928751490386d4ec028a3314ebc89cdd25ea45d (diff)
downloadingen-20b765b8befa32eed913e16d68f03a65459a605d.tar.gz
ingen-20b765b8befa32eed913e16d68f03a65459a605d.tar.bz2
ingen-20b765b8befa32eed913e16d68f03a65459a605d.zip
Make engine receivers depend only on ServerInterface.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3572 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/ConnectWindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/ConnectWindow.cpp b/src/gui/ConnectWindow.cpp
index f3987779..9ccdb192 100644
--- a/src/gui/ConnectWindow.cpp
+++ b/src/gui/ConnectWindow.cpp
@@ -374,7 +374,7 @@ ConnectWindow::gtk_callback()
sigc::mem_fun(this, &ConnectWindow::on_response));
_ping_id = abs(rand()) / 2 * 2; // avoid -1
- App::instance().engine()->set_next_response_id(_ping_id);
+ App::instance().engine()->respond_to(App::instance().client().get(), _ping_id);
App::instance().engine()->ping();
if (_widgets_loaded) {
@@ -391,7 +391,7 @@ ConnectWindow::gtk_callback()
const float ms_since_last = (now.tv_sec - last.tv_sec) * 1000.0f +
(now.tv_usec - last.tv_usec) * 0.001f;
if (ms_since_last > 1000) {
- App::instance().engine()->set_next_response_id(_ping_id);
+ App::instance().engine()->respond_to(App::instance().client().get(), _ping_id);
App::instance().engine()->ping();
last = now;
}