Skip to content
This repository has been archived by the owner on Jan 6, 2020. It is now read-only.

Commit

Permalink
Stop the device from sleeping
Browse files Browse the repository at this point in the history
  • Loading branch information
neilkimmett committed Aug 6, 2012
1 parent cd8a346 commit 0438cd3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions AirTunes/AirTunesController.m
Expand Up @@ -100,6 +100,9 @@ - (void)publishNetService

- (BOOL)start
{
// Stop the device from sleeping whilst we're playing our tunes
[[UIApplication sharedApplication] setIdleTimerDisabled:YES];

// Create our socket.
// We tell it to invoke our delegate methods on the main thread.

Expand Down

0 comments on commit 0438cd3

Please sign in to comment.