fix (concurrency): fix concurrency problem

This commit is contained in:
Mickael KERJEAN
2019-02-25 17:41:47 +11:00
parent 14e177026d
commit c9c3a9f5e2
4 changed files with 16 additions and 48 deletions

View File

@ -23,6 +23,9 @@ func NewBackend(ctx *App, conn map[string]string) (IBackend, error) {
}
}
if val, ok := d["path"]; ok == true {
if val == nil {
val = "/"
}
if val != conn["path"] {
continue
}