Changeset 6431


Ignore:
Timestamp:
May 31, 2010, 1:45:28 PM (10 years ago)
Author:
ronosman
Message:

Remove single instance lock file on exit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/pLoader/trunk/src/Uploader/GUI/App.pm

    r6426 r6431  
    106106    images_file
    107107    app_file
     108    instance_checker_file
    108109/;
    109110
     
    184185    my( $self ) = @_;
    185186
     187    unlink $self->instance_checker_file
     188        if -e $self->instance_checker_file;
    186189    $self->store_all;
    187190
     
    312315        $pid
    313316    );
     317
     318    $self->instance_checker_file(
     319        File::Spec->canonpath(
     320            File::Spec->catfile(
     321                File::HomeDir->my_home(),
     322                $pid
     323            )
     324        )
     325    );
     326
    314327}
    315328
Note: See TracChangeset for help on using the changeset viewer.