Apply same pluck permission region fix to unregistered serverRequestCall

This commit is contained in:
Joel Stanley 2016-07-11 12:53:19 -05:00
parent ca1d5a7205
commit 4ae3936ac9

View file

@ -36,7 +36,8 @@ serverRequestCall server cq@CompletionQueue{..} =
withPermission Push cq $
bracket malloc free $ \callPtr ->
C.withMetadataArrayPtr $ \metadataArrayPtr ->
C.withCallDetails $ \callDetails -> do
C.withCallDetails $ \callDetails ->
withPermission Pluck cq $ do
grpcDebug $ "serverRequestCall: callPtr is " ++ show callPtr
metadataArray <- peek metadataArrayPtr
tag <- newTag cq