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();
|
||||
|
||||
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.
|
||||
stream->set_offset(prev_offset);
|
||||
num_objects--;
|
||||
|
|
|
@ -17,9 +17,7 @@ namespace kernel {
|
|||
NotifyListener::NotifyListener(KernelState* kernel_state)
|
||||
: XObject(kernel_state, kTypeNotifyListener) {}
|
||||
|
||||
NotifyListener::~NotifyListener() {
|
||||
kernel_state_->UnregisterNotifyListener(this);
|
||||
}
|
||||
NotifyListener::~NotifyListener() {}
|
||||
|
||||
void NotifyListener::Initialize(uint64_t mask) {
|
||||
assert_false(wait_handle_);
|
||||
|
|
Loading…
Reference in New Issue