From 2bdcff56b610e5c4c9169b8c854110e3c400fcf4 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sun, 10 Mar 2019 23:11:28 -0400 Subject: [PATCH] make new message for unblock --- .../Services/Implementations/AzureQueueBlockIpService.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Core/Services/Implementations/AzureQueueBlockIpService.cs b/src/Core/Services/Implementations/AzureQueueBlockIpService.cs index ca0b3b5897..5331497d49 100644 --- a/src/Core/Services/Implementations/AzureQueueBlockIpService.cs +++ b/src/Core/Services/Implementations/AzureQueueBlockIpService.cs @@ -24,12 +24,13 @@ namespace Bit.Core.Services public async Task BlockIpAsync(string ipAddress, bool permanentBlock) { await InitAsync(); - var message = new CloudQueueMessage(ipAddress); - await _blockIpQueue.AddMessageAsync(message); + var blockMessage = new CloudQueueMessage(ipAddress); + await _blockIpQueue.AddMessageAsync(blockMessage); if(!permanentBlock) { - await _unblockIpQueue.AddMessageAsync(message, null, new TimeSpan(0, 15, 0), null, null); + var unblockMessage = new CloudQueueMessage(ipAddress); + await _unblockIpQueue.AddMessageAsync(unblockMessage, null, new TimeSpan(0, 15, 0), null, null); } }