From b9b03940a2accdaf6d3f1850b7a900a808ba9f43 Mon Sep 17 00:00:00 2001 From: Matej Sekoranja Date: Tue, 8 Apr 2014 13:27:24 +0200 Subject: [PATCH] DefaultArray deserialize fix --- pvDataApp/factory/PVDataCreateFactory.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/pvDataApp/factory/PVDataCreateFactory.cpp b/pvDataApp/factory/PVDataCreateFactory.cpp index f8c6a89..497edc0 100644 --- a/pvDataApp/factory/PVDataCreateFactory.cpp +++ b/pvDataApp/factory/PVDataCreateFactory.cpp @@ -308,15 +308,8 @@ void DefaultPVArray::deserialize(ByteBuffer *pbuffer, const size_t available = have_bytes/sizeof(T); if(available == 0) { - size_t want = sizeof(T); - if(remaining==1 && sizeof(T)>1) { - // Need to wait for the last few bytes - // of the final element. - // available==0 implies have_bytesensureData(want); + // get at least one element + pcontrol->ensureData(sizeof(T)); continue; }