Dispose of it properly in an async context
This commit is contained in:
@@ -31,9 +31,11 @@ namespace TwilioSMSReceiver.Common.MessageHandlers
|
||||
message.IsForwardedYet = true;
|
||||
sMSDbCtx.SMSMessages.Update(message);
|
||||
await sMSDbCtx.SaveChangesAsync();
|
||||
await sMSDbCtx.DisposeAsync();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
await sMSDbCtx.DisposeAsync();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user