usbengines/usbwatcher/src/usbwatcher.cpp
changeset 3 47c263f7e521
parent 0 1e05558e2206
equal deleted inserted replaced
2:468cfcb53fd1 3:47c263f7e521
    48     __UHEAP_MARK;
    48     __UHEAP_MARK;
    49     // create clean-up stack
    49     // create clean-up stack
    50     CTrapCleanup* cleanup = CTrapCleanup::New();
    50     CTrapCleanup* cleanup = CTrapCleanup::New();
    51 
    51 
    52     TRAP( ret, StartUsbWatcherL() );
    52     TRAP( ret, StartUsbWatcherL() );
       
    53     if ( KErrAlreadyExists == ret )
       
    54         {
       
    55         LOG( "UsbWatcher is already running." );
       
    56         }
       
    57     else if ( KErrNone != ret )
       
    58         {
       
    59         LOG1( "ERROR: StartUsbWatcherL = %d", ret );
       
    60         }
    53 
    61 
    54     delete cleanup; // destroy clean-up stack
    62     delete cleanup; // destroy clean-up stack
    55     __UHEAP_MARKEND;
    63     __UHEAP_MARKEND;
    56 
    64 
    57     LOG1( "E32Main = %d", ret );
    65     LOG1( "E32Main = %d", ret );