Skip to content

Commit

Permalink
feat: update version to 2.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
leeway1208 committed Feb 11, 2023
1 parent e20828a commit adeeef7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CocoaMQTT.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "CocoaMQTT"
s.version = "2.1.0"
s.version = "2.1.1"
s.summary = "MQTT v3.1.1 client library for iOS and OS X written with Swift 5"
s.homepage = "https://github.com/emqx/CocoaMQTT"
s.license = { :type => "MIT" }
Expand All @@ -12,7 +12,7 @@ Pod::Spec.new do |s|
s.ios.deployment_target = "9.0"
s.tvos.deployment_target = "10.0"
# s.watchos.deployment_target = "2.0"
s.source = { :git => "https://github.com/emqx/CocoaMQTT.git", :tag => "2.1.0"}
s.source = { :git => "https://github.com/emqx/CocoaMQTT.git", :tag => "2.1.1"}
s.default_subspec = 'Core'

s.subspec 'Core' do |ss|
Expand Down
6 changes: 5 additions & 1 deletion Source/CocoaMQTTReader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ class CocoaMQTTReader {
// more
} else {
let result = multiply.multipliedReportingOverflow(by: 128)
multiply = result.partialValue
if !result.overflow {
multiply = result.partialValue
}else{
reset()
}
readLength()
}
}
Expand Down

0 comments on commit adeeef7

Please sign in to comment.