mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1219974 - Add DisconnectIfExists() to MediaEventListener. r=kinetik.
This commit is contained in:
parent
2b11d2bb27
commit
dadbb2efae
@ -343,6 +343,12 @@ public:
|
||||
mToken = nullptr;
|
||||
}
|
||||
|
||||
void DisconnectIfExists() {
|
||||
if (mToken) {
|
||||
Disconnect();
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
// Avoid exposing RevocableToken directly to the client code so that
|
||||
// listeners can be disconnected in a controlled manner.
|
||||
|
Loading…
Reference in New Issue
Block a user