Protect progress bar printing by the mutex

This commit is contained in:
Anis Elleuch
2015-07-01 17:40:45 +01:00
parent b0deba6bab
commit 3550b85cc7
+3 -1
View File
@@ -86,7 +86,9 @@ var (
}()
// Bar print progress bar
Bar = themesDB[currThemeName].Info.Print
Bar = func(data ...interface{}) {
print(themesDB[currThemeName].Bar, data...)
}
// Print prints a message
Print = func(data ...interface{}) {