Skip to content

Commit

Permalink
Fix rmistart running twice after VoodooPS2
Browse files Browse the repository at this point in the history
  • Loading branch information
1Revenger1 committed Feb 2, 2021
1 parent a0cd1a0 commit d59f6e6
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions VoodooRMI/Transports/SMBus/RMISMBus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,20 @@ bool RMISMBus::start(IOService *provider)

IOLogInfo("VoodooPS2Mouse finished init, starting...");
messageClient(kPS2M_SMBusStart, newService);
rmiStart();

notifier->remove();
return rmiStart();
rmiStart();

return true;
});

IOLogDebug("Notifier installed: %s", notifierStatus ? "true" : "false");
if (!notifierStatus) {
IOLogError("Notifier not installed");
}

// Retained by addMatchingNotification
OSSafeReleaseNULL(dict);
OSSafeReleaseNULL(ps2);
return true;
return !!notifierStatus;
}

OSSafeReleaseNULL(dict);
Expand Down

0 comments on commit d59f6e6

Please sign in to comment.