mirror of
https://github.com/servo/servo
synced 2026-04-28 02:19:14 +02:00
Add a dummy reconfigure reply in the thread actor
This commit is contained in:
@@ -30,6 +30,11 @@ struct ThreadResumedReply {
|
||||
__type__: String,
|
||||
}
|
||||
|
||||
#[derive(RustcEncodable)]
|
||||
struct ReconfigureReply {
|
||||
from: String
|
||||
}
|
||||
|
||||
pub struct ThreadActor {
|
||||
name: String,
|
||||
}
|
||||
@@ -74,6 +79,11 @@ impl Actor for ThreadActor {
|
||||
ActorMessageStatus::Processed
|
||||
},
|
||||
|
||||
"reconfigure" => {
|
||||
stream.write_json_packet(&ReconfigureReply { from: self.name() });
|
||||
ActorMessageStatus::Processed
|
||||
}
|
||||
|
||||
_ => ActorMessageStatus::Ignored,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user