aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bluetoothremotegattdescriptor.rs
diff options
context:
space:
mode:
authorzakorgyula <gyula.zakor@gmail.com>2016-10-07 14:17:51 +0200
committerzakorgyula <gyula.zakor@gmail.com>2016-11-04 15:36:50 +0100
commitdd733f6994e27a91e46fb8f9feb9a7e7179cfcda (patch)
tree48fb3bef3ce4b61252c317b30e885963d9311e1e /components/script/dom/bluetoothremotegattdescriptor.rs
parent0eeb56b5492fb6a3cc422193e7b753bc55f3cff3 (diff)
downloadservo-dd733f6994e27a91e46fb8f9feb9a7e7179cfcda.tar.gz
servo-dd733f6994e27a91e46fb8f9feb9a7e7179cfcda.zip
Update the value of the Characteristic/Descriptor when calling writeValue.
Diffstat (limited to 'components/script/dom/bluetoothremotegattdescriptor.rs')
-rw-r--r--components/script/dom/bluetoothremotegattdescriptor.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/bluetoothremotegattdescriptor.rs b/components/script/dom/bluetoothremotegattdescriptor.rs
index 5ca51f45439..c7e64b7305c 100644
--- a/components/script/dom/bluetoothremotegattdescriptor.rs
+++ b/components/script/dom/bluetoothremotegattdescriptor.rs
@@ -105,10 +105,10 @@ impl BluetoothRemoteGATTDescriptor {
}
let (sender, receiver) = ipc::channel().unwrap();
self.get_bluetooth_thread().send(
- BluetoothMethodMsg::WriteValue(self.get_instance_id(), value, sender)).unwrap();
+ BluetoothMethodMsg::WriteValue(self.get_instance_id(), value.clone(), sender)).unwrap();
let result = receiver.recv().unwrap();
match result {
- Ok(_) => Ok(()),
+ Ok(_) => Ok(*self.value.borrow_mut() = Some(ByteString::new(value))),
Err(error) => {
Err(Error::from(error))
},