Skip to content

Commit

Permalink
Merge branch 'v12.1.3'
Browse files Browse the repository at this point in the history
* v12.1.3:
  bump version
  Fix socketio#855
  • Loading branch information
nuclearace committed Nov 8, 2017
2 parents 099c379 + 45af5d9 commit 6905113
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Then import `import SocketIO`.
### Carthage
Add this line to your `Cartfile`:
```
github "socketio/socket.io-client-swift" ~> 12.1.2 # Or latest version
github "socketio/socket.io-client-swift" ~> 12.1.3 # Or latest version
```

Run `carthage update --platform ios,macosx`.
Expand All @@ -107,7 +107,7 @@ Create `Podfile` and add `pod 'Socket.IO-Client-Swift'`:
use_frameworks!

target 'YourApp' do
pod 'Socket.IO-Client-Swift', '~> 12.1.2' # Or latest version
pod 'Socket.IO-Client-Swift', '~> 12.1.3' # Or latest version
end
```

Expand Down
4 changes: 2 additions & 2 deletions Socket.IO-Client-Swift.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = "Socket.IO-Client-Swift"
s.module_name = "SocketIO"
s.version = "12.1.2"
s.version = "12.1.3"
s.summary = "Socket.IO-client for iOS and OS X"
s.description = <<-DESC
Socket.IO-client for iOS and OS X.
Expand All @@ -17,7 +17,7 @@ Pod::Spec.new do |s|
s.requires_arc = true
s.source = {
:git => "https://github.com/socketio/socket.io-client-swift.git",
:tag => 'v12.1.2',
:tag => 'v12.1.3',
:submodules => true
}
s.pod_target_xcconfig = {
Expand Down
7 changes: 5 additions & 2 deletions Source/SocketIO/Engine/SocketEngine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -563,8 +563,11 @@ public final class SocketEngine : NSObject, URLSessionDelegate, SocketEnginePoll
pongsMissed += 1
write("", withType: .ping, withData: [])

engineQueue.asyncAfter(deadline: DispatchTime.now() + .milliseconds(pingInterval)) {[weak self] in
self?.sendPing()
engineQueue.asyncAfter(deadline: DispatchTime.now() + .milliseconds(pingInterval)) {[weak self, id = self.sid] in
// Make sure not to ping old connections
guard let this = self, this.sid == id else { return }

this.sendPing()
}
}

Expand Down

0 comments on commit 6905113

Please sign in to comment.