mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
pre-save syncing var for return
This commit is contained in:
parent
a5f0724ba5
commit
3629a1f5a2
|
@ -476,11 +476,11 @@ func (environ *Environment) Connect(ctx context.Context) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (environ *Environment) IsSyncing() bool {
|
||||
func (environ *Environment) IsSyncing() (syncing bool) {
|
||||
environ.syncMutex.Lock()
|
||||
defer environ.syncMutex.Unlock()
|
||||
|
||||
return environ.syncing
|
||||
syncing = environ.syncing
|
||||
environ.syncMutex.Unlock()
|
||||
return syncing
|
||||
}
|
||||
|
||||
// Sync syncs all registered exchange sessions
|
||||
|
|
Loading…
Reference in New Issue
Block a user