Skip to content

Commit

Permalink
Fixed a spelling error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Chambers committed Sep 8, 2014
1 parent 67e1123 commit b3b6e31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/relayrides/pushy/apns/ApnsConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public class ApnsConnection<T extends ApnsPushNotification> {
private final SentNotificationBuffer<T> sentNotificationBuffer;

private static final String PIPELINE_MAIN_HANDLER = "handler";
private static final String PIPELINE_IDLE_STATE_HANLDER = "idleStateHandler";
private static final String PIPELINE_IDLE_STATE_HANDLER = "idleStateHandler";

private static final Logger log = LoggerFactory.getLogger(ApnsConnection.class);

Expand Down Expand Up @@ -329,7 +329,7 @@ public void userEventTriggered(final ChannelHandlerContext context, final Object
if (event instanceof IdleStateEvent) {
log.debug("{} will shut down due to inactivity.", this.apnsConnection.name);

context.pipeline().remove(ApnsConnection.PIPELINE_IDLE_STATE_HANLDER);
context.pipeline().remove(ApnsConnection.PIPELINE_IDLE_STATE_HANDLER);
this.apnsConnection.shutdownGracefully();
} else {
super.userEventTriggered(context, event);
Expand Down Expand Up @@ -447,7 +447,7 @@ public void operationComplete(final Future<Channel> handshakeFuture) {

if (apnsConnection.configuration.getCloseAfterInactivityTime() != null) {
connectFuture.channel().pipeline().addBefore(ApnsConnection.PIPELINE_MAIN_HANDLER,
ApnsConnection.PIPELINE_IDLE_STATE_HANLDER,
ApnsConnection.PIPELINE_IDLE_STATE_HANDLER,
new IdleStateHandler(0, 0, apnsConnection.configuration.getCloseAfterInactivityTime()));
}

Expand Down

0 comments on commit b3b6e31

Please sign in to comment.