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
This commit is contained in:
parent
38dd633fc6
commit
c1300a0172
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Copyright (C) 2009-2012 Paul Davis
|
Copyright (C) 2009-2012 Paul Davis
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
@ -57,7 +57,8 @@ public:
|
|||||||
boost::mutex::scoped_lock lm (_mutex);
|
boost::mutex::scoped_lock lm (_mutex);
|
||||||
if (_signal) {
|
if (_signal) {
|
||||||
_signal->disconnect (shared_from_this ());
|
_signal->disconnect (shared_from_this ());
|
||||||
}
|
_signal = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void signal_going_away ()
|
void signal_going_away ()
|
||||||
|
Loading…
Reference in New Issue
Block a user