Do not reset network on sleep or wake
This commit is contained in:
@@ -12,9 +12,7 @@ type iOSPauseFields struct {
|
|||||||
|
|
||||||
func (s *BoxService) Pause() {
|
func (s *BoxService) Pause() {
|
||||||
s.pauseManager.DevicePause()
|
s.pauseManager.DevicePause()
|
||||||
if !C.IsIos {
|
if C.IsIos {
|
||||||
s.instance.Router().ResetNetwork()
|
|
||||||
} else {
|
|
||||||
if s.endPauseTimer == nil {
|
if s.endPauseTimer == nil {
|
||||||
s.endPauseTimer = time.AfterFunc(time.Minute, s.pauseManager.DeviceWake)
|
s.endPauseTimer = time.AfterFunc(time.Minute, s.pauseManager.DeviceWake)
|
||||||
} else {
|
} else {
|
||||||
@@ -26,7 +24,6 @@ func (s *BoxService) Pause() {
|
|||||||
func (s *BoxService) Wake() {
|
func (s *BoxService) Wake() {
|
||||||
if !C.IsIos {
|
if !C.IsIos {
|
||||||
s.pauseManager.DeviceWake()
|
s.pauseManager.DeviceWake()
|
||||||
s.instance.Router().ResetNetwork()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user