Skip to content

Commit 1a7c530

Browse files
author
Jeremy Chiang
authored
Fix disconnect then scan crash (#203)
* Fix crashes when a queueable needs to fail due to a queued disconnection, #196 Failing a queueable requires updating a queue, and therefore requires a reference to the queue. The disconnection queued failure block is relatively new, so I didn't catch the new requirement to shuffle the queue assignment to the new starting point of the add call. * Bump version to 0.8.4, #196
1 parent 1eb3e74 commit 1a7c530

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

Bluejay.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
Pod::Spec.new do |spec|
22
spec.name = 'Bluejay'
3-
spec.version = '0.8.3'
3+
spec.version = '0.8.4'
44
spec.license = { type: 'MIT', file: 'LICENSE' }
55
spec.homepage = 'https://github.com/steamclock/bluejay'
66
spec.authors = { 'Jeremy Chiang' => 'jeremy@steamclock.com' }
77
spec.summary = 'Bluejay is a simple Swift framework for building reliable Bluetooth apps.'
88
spec.homepage = 'https://github.com/steamclock/bluejay'
9-
spec.source = { git: 'https://github.com/steamclock/bluejay.git', tag: 'v0.8.3' }
9+
spec.source = { git: 'https://github.com/steamclock/bluejay.git', tag: 'v0.8.4' }
1010
spec.source_files = 'Bluejay/Bluejay/*.{h,swift}'
1111
spec.framework = 'SystemConfiguration'
1212
spec.platform = :ios, '10.0'

Bluejay/.jazzy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ output: ../docs
22
author: Steamclock Software
33
author_url: http://steamclock.com
44
module: Bluejay
5-
module_version: 0.8.3
5+
module_version: 0.8.4
66
readme: ../README.md
77
sdk: iphone
88
copyright: Copyright © 2017 Steamclock Software. All rights reserved.

Bluejay/Bluejay/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>0.8.3</string>
18+
<string>0.8.4</string>
1919
<key>CFBundleVersion</key>
2020
<string>$(CURRENT_PROJECT_VERSION)</string>
2121
<key>NSPrincipalClass</key>

Bluejay/Bluejay/Queue.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,13 @@ class Queue {
5555
preconditionFailure("Cannot enqueue: Bluejay instance is nil.")
5656
}
5757

58+
queueable.queue = self
59+
5860
if isDisconnectionQueued {
5961
queueable.fail(BluejayError.disconnectQueued)
6062
return
6163
}
6264

63-
queueable.queue = self
6465
queue.append(queueable)
6566

6667
/*

0 commit comments

Comments
 (0)