Remove ~NotifyListener call to UnregisterNotifyListener (as it's impossible for this to occur)
This commit is contained in:
parent
290d5d9594
commit
c8a2298b9d
|
@ -610,7 +610,7 @@ bool KernelState::Save(ByteStream* stream) {
|
||||||
auto prev_offset = stream->offset();
|
auto prev_offset = stream->offset();
|
||||||
|
|
||||||
stream->Write((uint32_t)object->type());
|
stream->Write((uint32_t)object->type());
|
||||||
if (!object->is_host_object() && !object->Save(stream)) {
|
if (object->is_host_object() || !object->Save(stream)) {
|
||||||
// Revert backwards and overwrite if a save failed.
|
// Revert backwards and overwrite if a save failed.
|
||||||
stream->set_offset(prev_offset);
|
stream->set_offset(prev_offset);
|
||||||
num_objects--;
|
num_objects--;
|
||||||
|
|
|
@ -17,9 +17,7 @@ namespace kernel {
|
||||||
NotifyListener::NotifyListener(KernelState* kernel_state)
|
NotifyListener::NotifyListener(KernelState* kernel_state)
|
||||||
: XObject(kernel_state, kTypeNotifyListener) {}
|
: XObject(kernel_state, kTypeNotifyListener) {}
|
||||||
|
|
||||||
NotifyListener::~NotifyListener() {
|
NotifyListener::~NotifyListener() {}
|
||||||
kernel_state_->UnregisterNotifyListener(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
void NotifyListener::Initialize(uint64_t mask) {
|
void NotifyListener::Initialize(uint64_t mask) {
|
||||||
assert_false(wait_handle_);
|
assert_false(wait_handle_);
|
||||||
|
|
Loading…
Reference in New Issue