summaryrefslogtreecommitdiff
path: root/libs/pbd/pbd/signals.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-05-16 00:06:16 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-05-16 00:06:16 +0000
commitc1300a01722831eee7257775136f0482dac09656 (patch)
treee8048f4785c9678e59d43b9a35eba30e2bd6c421 /libs/pbd/pbd/signals.h
parent38dd633fc60720be873d756140a934cc5a7cba78 (diff)
reset _signal member of a Connection so that we will never try to disconnect twice
git-svn-id: svn://localhost/ardour2/branches/3.0@12299 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd/pbd/signals.h')
-rw-r--r--libs/pbd/pbd/signals.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/pbd/pbd/signals.h b/libs/pbd/pbd/signals.h
index 904d51e45f..e20a126163 100644
--- a/libs/pbd/pbd/signals.h
+++ b/libs/pbd/pbd/signals.h
@@ -1,6 +1,6 @@
/*
Copyright (C) 2009-2012 Paul Davis
-
+
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
@@ -57,7 +57,8 @@ public:
boost::mutex::scoped_lock lm (_mutex);
if (_signal) {
_signal->disconnect (shared_from_this ());
- }
+ _signal = 0;
+ }
}
void signal_going_away ()