mirror of
https://github.com/aditya-K2/gspt.git
synced 2026-01-07 21:13:50 -05:00
Don't wait for the refreshable to refresh it's state
This commit is contained in:
@@ -38,7 +38,9 @@ func (a *Action) Func() ActionFunc {
|
||||
if a != nil && a.f != nil {
|
||||
val := a.f(e)
|
||||
if a.refreshable != nil && val == nil {
|
||||
a.refreshable.RefreshState()
|
||||
go func() {
|
||||
a.refreshable.RefreshState()
|
||||
}()
|
||||
}
|
||||
return val
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user