Lock app for CreateTaggedPeer
This commit is contained in:
parent
54e6122af7
commit
a4e62fe902
|
@ -93,6 +93,8 @@ func GenerateRandomID() string {
|
|||
}
|
||||
|
||||
func (app *application) CreateTaggedPeer(name string, password string, tag string) {
|
||||
app.appmutex.Lock()
|
||||
defer app.appmutex.Unlock()
|
||||
|
||||
profileDirectory := path.Join(app.directory, "profiles", GenerateRandomID())
|
||||
|
||||
|
|
Loading…
Reference in New Issue