Changed WebStorageClient because storage server behavior changed.
This commit is contained in:
parent
ca9eebe138
commit
adf05eaf29
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
|
|
||||||
Author : $Author: fgerlits $
|
Author : $Author: fgerlits $
|
||||||
Version : $Revision: 1.9 $
|
Version : $Revision: 1.10 $
|
||||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storage/src/WebStorageClient.cxx,v $
|
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storage/src/WebStorageClient.cxx,v $
|
||||||
|
|
||||||
------------------------------------------------------------------------------*/
|
------------------------------------------------------------------------------*/
|
||||||
|
@ -231,11 +231,6 @@ static const std::string getAudioClipMethodUrlParamName = "url";
|
||||||
*----------------------------------------------------------------------------*/
|
*----------------------------------------------------------------------------*/
|
||||||
static const std::string getAudioClipMethodTokenParamName = "token";
|
static const std::string getAudioClipMethodTokenParamName = "token";
|
||||||
|
|
||||||
/*------------------------------------------------------------------------------
|
|
||||||
* The name of the status parameter returned by the close method
|
|
||||||
*----------------------------------------------------------------------------*/
|
|
||||||
static const std::string getAudioClipMethodStatusParamName = "status";
|
|
||||||
|
|
||||||
|
|
||||||
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ storage server constants: storeAudioClip */
|
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ storage server constants: storeAudioClip */
|
||||||
|
|
||||||
|
@ -605,10 +600,11 @@ std::cout << xmlAudioClip.at(offset+20) << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (xmlRpcClient.isFault()
|
if (xmlRpcClient.isFault()
|
||||||
|| ! result.hasMember(getAudioClipMethodStatusParamName)
|
|| ! result.hasMember(getAudioClipMethodAudioClipIdParamName)
|
||||||
|| result[getAudioClipMethodStatusParamName].getType()
|
|| result[getAudioClipMethodAudioClipIdParamName].getType()
|
||||||
!= XmlRpcValue::TypeBoolean
|
!= XmlRpcValue::TypeString
|
||||||
|| ! bool(result[getAudioClipMethodStatusParamName])) {
|
|| std::string(result[getAudioClipMethodAudioClipIdParamName])
|
||||||
|
!= std::string(*id)) {
|
||||||
std::stringstream eMsg;
|
std::stringstream eMsg;
|
||||||
eMsg << "XML-RPC method '"
|
eMsg << "XML-RPC method '"
|
||||||
<< getAudioClipCloseMethodName
|
<< getAudioClipCloseMethodName
|
||||||
|
|
Loading…
Reference in New Issue