Skip to content

Commit

Permalink
fixup! fixup! fixup! Added sleep prevention during file transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
Polyfish0 committed Oct 16, 2023
1 parent 46ae7b1 commit 06a7b5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion NearbyShare/NearbyConnectionManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ public class NearbyConnectionManager : NSObject, NetServiceDelegate, InboundNear
outgoingTransfers.removeValue(forKey: connection.id)
}

public func getActiveConnections() -> Int {
public func getActiveConnectionsCount() -> Int {
return activeConnections.count
}
}
Expand Down
2 changes: 1 addition & 1 deletion NearbyShare/SleepManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class SleepManager{
}

public func enableSleep(){
if(assertionID == 0 || NearbyConnectionManager.shared.getActiveConnections() != 0){
if(assertionID == 0 || NearbyConnectionManager.shared.getActiveConnectionsCount() != 0){
return
}

Expand Down

0 comments on commit 06a7b5f

Please sign in to comment.