Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 24BE9200D08 for ; Wed, 23 Aug 2017 01:06:02 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 23219167CB6; Tue, 22 Aug 2017 23:06:02 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 60A36167CB5 for ; Wed, 23 Aug 2017 01:06:01 +0200 (CEST) Received: (qmail 5771 invoked by uid 500); 22 Aug 2017 23:05:54 -0000 Mailing-List: contact dev-help@geode.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@geode.apache.org Delivered-To: mailing list dev@geode.apache.org Received: (qmail 5760 invoked by uid 99); 22 Aug 2017 23:05:54 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Aug 2017 23:05:54 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id EED5BE0610; Tue, 22 Aug 2017 23:05:53 +0000 (UTC) From: jhuynh1 To: dev@geode.apache.org Reply-To: dev@geode.apache.org References: In-Reply-To: Subject: [GitHub] geode pull request #732: GEODE-3276: Managing race conditions while the send... Content-Type: text/plain Message-Id: <20170822230553.EED5BE0610@git1-us-west.apache.org> Date: Tue, 22 Aug 2017 23:05:53 +0000 (UTC) archived-at: Tue, 22 Aug 2017 23:06:02 -0000 Github user jhuynh1 commented on a diff in the pull request: https://github.com/apache/geode/pull/732#discussion_r134622619 --- Diff: geode-wan/src/main/java/org/apache/geode/internal/cache/wan/parallel/ParallelGatewaySenderImpl.java --- @@ -107,6 +107,9 @@ public void stop() { if (ev != null && !ev.isStopped()) { ev.stopProcessing(); } + if (ev != null && ev.getDispatcher() != null) { --- End diff -- Is it possible to pull this check and shutdown into a method? Looks like it's used a few times throughout the code --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---