|
@@ -79,20 +79,6 @@ func NewServerMessageBlockFileSystemAbstraction(uuid string, hierarchy string, i
|
|
tickerChan: done,
|
|
tickerChan: done,
|
|
}
|
|
}
|
|
|
|
|
|
- //Create a ticker to check for renewing conncetion once an hour
|
|
|
|
- ticker := time.NewTicker(5 * time.Minute)
|
|
|
|
- go func(s *ServerMessageBlockFileSystemAbstraction) {
|
|
|
|
- for {
|
|
|
|
- select {
|
|
|
|
- case <-done:
|
|
|
|
- return
|
|
|
|
- case <-ticker.C:
|
|
|
|
- //Ping the smb server to make sure it knows we are alive
|
|
|
|
- s.share.Stat("")
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }(&fsAbstraction)
|
|
|
|
-
|
|
|
|
return fsAbstraction, nil
|
|
return fsAbstraction, nil
|
|
}
|
|
}
|
|
|
|
|