Skip to content

Commit

Permalink
stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
cinnamonwolfy committed Jan 3, 2024
1 parent e4b9648 commit 18aa1cb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/libsrv-frontend.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,14 @@ void plSrvInitHalt(plsrvactions_t action, plmt_t* mt){
}

plstring_t* direntsArr = dirents.pointer;
struct timespec buf;
struct timespec sleepconst = {
.tv_sec = 0,
.tv_nsec = 5
};
for(int i = 0; i < dirents.size; i++){
plSrvStartStop(mode, direntsArr[i].data.pointer, mt);
nanosleep(&sleepconst, &buf);
}
plRTFreeParsedString(dirents);

Expand Down

0 comments on commit 18aa1cb

Please sign in to comment.