mirror of
https://github.com/kopia/kopia.git
synced 2026-04-04 22:33:20 -04:00
@@ -200,7 +200,11 @@ func (mcs *MultiClientSnapshotter) createOrGetSnapshotter(ctx context.Context) (
|
||||
}
|
||||
|
||||
// Register client with server and create connection
|
||||
if err := mcs.server.AuthorizeClient(c.ID); err != nil {
|
||||
mcs.mu.Lock()
|
||||
err = mcs.server.AuthorizeClient(c.ID)
|
||||
mcs.mu.Unlock()
|
||||
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user