зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1874857 [Wayland] Don't create wayland proxy if it's already running r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D198928
This commit is contained in:
Родитель
bf77ef7592
Коммит
16a6dcdaf3
|
@ -4740,9 +4740,13 @@ int XREMain::XRE_mainStartup(bool* aExitFlag) {
|
|||
WaylandProxy::SetVerbose(true);
|
||||
}
|
||||
# endif
|
||||
gWaylandProxy = WaylandProxy::Create();
|
||||
if (gWaylandProxy) {
|
||||
gWaylandProxy->RunThread();
|
||||
// Wayland proxy may be already running by update, no need to terminate
|
||||
// it and start again.
|
||||
if (!gWaylandProxy) {
|
||||
gWaylandProxy = WaylandProxy::Create();
|
||||
if (gWaylandProxy) {
|
||||
gWaylandProxy->RunThread();
|
||||
}
|
||||
}
|
||||
}
|
||||
# endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче