Skip to content

Commit

Permalink
added deinit to socket provider to gracefully disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
thebarndog committed May 13, 2017
1 parent d5b2b44 commit 457425a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Feathers/Core/SocketProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,12 @@ public final class SocketProvider: RealTimeProvider {
client.off(event)
}

// MARK: - Deinit

deinit {
client.disconnect()
}

}

fileprivate extension Service.Method {
Expand Down

0 comments on commit 457425a

Please sign in to comment.