diff --git a/app/app.go b/app/app.go index f90cf43..31c2159 100644 --- a/app/app.go +++ b/app/app.go @@ -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())