Removed unnecessary code.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1618 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -84,23 +84,14 @@ int
|
|||||||
main()
|
main()
|
||||||
{
|
{
|
||||||
status_t rc = B_OK;
|
status_t rc = B_OK;
|
||||||
|
gLock = new BLocker();
|
||||||
if (!be_roster->IsRunning(PSRV_SIGNATURE_TYPE)) {
|
// Create our application object
|
||||||
gLock = new BLocker();
|
PrintServerApp print_server(&rc);
|
||||||
// Create our application object
|
// If all went fine, let's start it
|
||||||
PrintServerApp print_server(&rc);
|
if (rc == B_OK) {
|
||||||
|
print_server.Run();
|
||||||
// If all went fine, let's start it
|
|
||||||
if (rc == B_OK) {
|
|
||||||
print_server.Run();
|
|
||||||
}
|
|
||||||
|
|
||||||
delete gLock;
|
|
||||||
} else {
|
|
||||||
// restart print server
|
|
||||||
// As we load the printer addon everytime we need it
|
|
||||||
// and unload it afterwards, we have nothing to do here!
|
|
||||||
}
|
}
|
||||||
|
delete gLock;
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user