From 57a94946d55395f1105c1072a2603989f84fe63c Mon Sep 17 00:00:00 2001 From: orignal Date: Tue, 5 Aug 2014 19:55:35 -0400 Subject: [PATCH] fixed bug with FIN message --- Streaming.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Streaming.cpp b/Streaming.cpp index 5e39ea4a..9cd47288 100644 --- a/Streaming.cpp +++ b/Streaming.cpp @@ -257,7 +257,7 @@ namespace stream packet[size] = 0; size++; // NACK count size++; // resend delay - *(uint16_t *)(packet + size) = PACKET_FLAG_CLOSE | PACKET_FLAG_SIGNATURE_INCLUDED; + *(uint16_t *)(packet + size) = htobe16 (PACKET_FLAG_CLOSE | PACKET_FLAG_SIGNATURE_INCLUDED); size += 2; // flags *(uint16_t *)(packet + size) = htobe16 (40); // 40 bytes signature size += 2; // options size