Skip to content

Commit

Permalink
Merge branch 'release/1.4.9'
Browse files Browse the repository at this point in the history
  • Loading branch information
loicgriffie committed May 7, 2021
2 parents e996691 + 6e7ac03 commit 110be86
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gormsson.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'Gormsson'
s.version = '1.4.8'
s.version = '1.4.9'
s.license = 'MIT'
s.summary = 'Gormsson is a framework that expose reusable components.'
s.description = <<-DESC
Expand Down
6 changes: 4 additions & 2 deletions Source/Delegate/CentralManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ internal final class CentralManager: NSObject {
switch cbState {
case .poweredOn:
state = .isPoweredOn
needScan = true
rescan()
default:
state = state == .isPoweredOn ? .didLostBluetooth : .needBluetooth
Expand Down Expand Up @@ -127,10 +128,11 @@ internal final class CentralManager: NSObject {
self.didUpdate = didUpdate
self.delay = delay
self.lifetime = lifetime
scanServices = services
scanOptions = options

guard state == .isPoweredOn else {
needScan = true
scanServices = services
scanOptions = options
return
}

Expand Down

0 comments on commit 110be86

Please sign in to comment.