Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #4352 from prisma/fix-subscription-termination
Browse files Browse the repository at this point in the history
fix subscription termination
  • Loading branch information
mavilein authored Apr 11, 2019
2 parents e620b02 + b76b6ea commit 3db4f2f
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.prisma.subscriptions.protocol

import akka.actor.{Actor, ActorRef, Stash}
import akka.actor.{Actor, ActorRef, PoisonPill, Stash}
import com.prisma.akkautil.{LogUnhandled, LogUnhandledExceptions}
import com.prisma.api.ApiMetrics
import com.prisma.jwt.Auth
Expand Down Expand Up @@ -108,6 +108,9 @@ case class SubscriptionSessionActor(
case GqlStop(id) =>
subscriptionsManager ! EndSubscription(id, sessionId, projectId)

case GqlConnectionTerminate =>
context.parent ! PoisonPill

case _: CreateSubscriptionSucceeded =>
// NOOP

Expand Down

0 comments on commit 3db4f2f

Please sign in to comment.