summaryrefslogtreecommitdiff
path: root/syncCommand.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2008-02-04 21:07:50 +0000
committerChristian Pointner <equinox@anytun.org>2008-02-04 21:07:50 +0000
commit1fd035fb9c2d659deea96d2ac5675869c7105566 (patch)
treea35e604644846f7fa0ea3878c062ab0cfa30a30d /syncCommand.h
parentfixed bug @ sync (diff)
fixed Deadlock @ connecetionlist
Diffstat (limited to 'syncCommand.h')
-rw-r--r--syncCommand.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/syncCommand.h b/syncCommand.h
index e8f66a7..b2f3fc5 100644
--- a/syncCommand.h
+++ b/syncCommand.h
@@ -15,7 +15,6 @@ public:
private:
SyncCommand(const SyncCommand &);
- ::Mutex mutex_;
ConnectionList & cl_;
u_int16_t mux_;
friend class boost::serialization::access;
@@ -24,7 +23,7 @@ private:
{
Lock lock(cl_.getMutex());
ar & mux_;
- ConnectionParam & conn = cl_.getOrNewConnection(mux_);
+ ConnectionParam & conn = cl_.getOrNewConnectionUnlocked(mux_);
ar & conn;
}
};