Skip to content

Commit ec72379

Browse files
committed
Moving log statement
1 parent 87ba60e commit ec72379

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

IFTTT SDK/ConnectionsSynchronizer.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,14 +149,14 @@ final class ConnectionsSynchronizer {
149149
/// - connections: An optional list of connections to start monitoring.
150150
/// - lifecycleSynchronizationOptions: The app lifecycle synchronization options to use with the scheduler
151151
func activate(connections ids: [String]? = nil, lifecycleSynchronizationOptions: ApplicationLifecycleSynchronizationOptions) {
152+
start(lifecycleSynchronizationOptions: lifecycleSynchronizationOptions)
153+
update(isActivation: true)
152154
if let ids = ids {
153155
registry.addConnections(with: ids, shouldNotify: false)
154156
ConnectButtonController.synchronizationLog("Activated synchronization with connection ids: \(ids)")
155157
} else {
156158
ConnectButtonController.synchronizationLog("Activated synchronization")
157159
}
158-
start(lifecycleSynchronizationOptions: lifecycleSynchronizationOptions)
159-
update(isActivation: true)
160160
}
161161

162162
/// Used to deactivate and stop synchronization.

0 commit comments

Comments
 (0)