Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
XDG Integration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
JennaHuntsman
XDG Integration
Commits
03593762
Commit
03593762
authored
2 years ago
by
Rye Mutt
Browse files
Options
Downloads
Patches
Plain Diff
Fix voice
parent
6d155bca
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/newview/llvoicevivox.cpp
+13
-27
13 additions, 27 deletions
indra/newview/llvoicevivox.cpp
with
13 additions
and
27 deletions
indra/newview/llvoicevivox.cpp
+
13
−
27
View file @
03593762
...
...
@@ -947,21 +947,6 @@ bool LLVivoxVoiceClient::startAndLaunchDaemon()
LLProcess
::
Params
params
;
params
.
executable
=
exe_path
;
// VOICE-88: Cycle through [portbase..portbase+portrange) on
// successive tries because attempting to relaunch (after manually
// disabling and then re-enabling voice) with the same port can
// cause SLVoice's bind() call to fail with EADDRINUSE. We expect
// that eventually the OS will time out previous ports, which is
// why we cycle instead of incrementing indefinitely.
U32
portbase
=
gSavedSettings
.
getU32
(
"VivoxVoicePort"
);
static
U32
portoffset
=
0
;
static
const
U32
portrange
=
100
;
std
::
string
host
(
gSavedSettings
.
getString
(
"VivoxVoiceHost"
));
U32
port
=
portbase
+
portoffset
;
portoffset
=
(
portoffset
+
1
)
%
portrange
;
params
.
args
.
add
(
"-i"
);
params
.
args
.
add
(
STRINGIZE
(
host
<<
':'
<<
port
));
std
::
string
loglevel
=
gSavedSettings
.
getString
(
"VivoxDebugLevel"
);
if
(
loglevel
.
empty
())
{
...
...
@@ -970,18 +955,6 @@ bool LLVivoxVoiceClient::startAndLaunchDaemon()
params
.
args
.
add
(
"-ll"
);
params
.
args
.
add
(
loglevel
);
if
(
gSavedSettings
.
getBOOL
(
"VoiceMultiInstance"
))
{
S32
port_nr
=
30000
+
ll_rand
(
20000
);
LLControlVariable
*
voice_port
=
gSavedSettings
.
getControl
(
"VivoxVoicePort"
);
if
(
voice_port
)
{
voice_port
->
setValue
(
LLSD
(
port_nr
),
false
);
params
.
args
.
add
(
"-i"
);
params
.
args
.
add
(
llformat
(
"127.0.0.1:%u"
,
gSavedSettings
.
getU32
(
"VivoxVoicePort"
)));
}
}
std
::
string
log_folder
=
gSavedSettings
.
getString
(
"VivoxLogDirectory"
);
if
(
log_folder
.
empty
())
...
...
@@ -1017,6 +990,18 @@ bool LLVivoxVoiceClient::startAndLaunchDaemon()
params
.
args
.
add
(
"-st"
);
params
.
args
.
add
(
shutdown_timeout
);
}
if
(
gSavedSettings
.
getBOOL
(
"VoiceMultiInstance"
))
{
S32
port_nr
=
30000
+
ll_rand
(
20000
);
LLControlVariable
*
voice_port
=
gSavedSettings
.
getControl
(
"VivoxVoicePort"
);
if
(
voice_port
)
{
voice_port
->
setValue
(
LLSD
(
port_nr
),
false
);
params
.
args
.
add
(
"-i"
);
params
.
args
.
add
(
llformat
(
"127.0.0.1:%u"
,
gSavedSettings
.
getU32
(
"VivoxVoicePort"
)));
}
}
params
.
cwd
=
gDirUtilp
->
getAppRODataDir
();
#ifndef LL_LINUX
...
...
@@ -1038,6 +1023,7 @@ bool LLVivoxVoiceClient::startAndLaunchDaemon()
sGatewayPtr
=
LLProcess
::
create
(
params
);
mDaemonHost
=
LLHost
(
host
.
c_str
(),
port
);
mDaemonHost
=
LLHost
(
gSavedSettings
.
getString
(
"VivoxVoiceHost"
).
c_str
(),
gSavedSettings
.
getU32
(
"VivoxVoicePort"
));
}
else
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment