Yep. You had 4 hp, then you took your second wind, bringing you up to 15. But, you were still suffering ongoing 5 poison damage...so technically, you should have been dead at the beginning of your turn before you even got to take your second wind. But I let it slide and just applied it after...