summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/exvar.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/exvar.go b/src/lib/exvar.go
index ccfd34acd..319a0977a 100644
--- a/src/lib/exvar.go
+++ b/src/lib/exvar.go
@@ -36,6 +36,9 @@ func Increment(name string, inc int) {
// Set sets the var called name to value.
func Set(name string, value int) {
+ mutex.Lock();
+ defer mutex.Unlock();
+
intVars[name] = value
}