From b2c898b5fe2130bc93406cbe264b196d3ce4af43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B5=D0=BB=D0=B8=D0=BF=D0=B5=D0=BD=D0=BA=D0=BE=20?= =?UTF-8?q?=D0=98=D0=B2=D0=B0=D0=BD?= Date: Mon, 20 Apr 2015 12:27:01 +0000 Subject: [PATCH] PIPeer important fix! git-svn-id: svn://db.shs.com.ru/pip@117 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5 --- utils/system_daemon/daemon.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/system_daemon/daemon.cpp b/utils/system_daemon/daemon.cpp index e0975b9f..08f7c2d4 100644 --- a/utils/system_daemon/daemon.cpp +++ b/utils/system_daemon/daemon.cpp @@ -285,8 +285,8 @@ void Daemon::fillInfoTile(const Daemon::HostInfo & hi) { void Daemon::tileEvent(PIScreenTile * t, TileEvent e) { - PIMutexLocker ml(remote_mutex); if (t == list_daemons) { + PIMutexLocker ml(remote_mutex); if (e.type == TileList::RowPressed) { connectToDaemon(list_daemons->content[e.data.toInt()].first); showActionList(); @@ -294,6 +294,7 @@ void Daemon::tileEvent(PIScreenTile * t, TileEvent e) { return; } if (t == list_actions) { + PIMutexLocker ml(remote_mutex); if (e.type == TileList::RowPressed) { switch (e.data.toInt()) { case 0: mode = 2; showTile(tile_info, "Information"); break;