added code for checking internet connection
This commit is contained in:
parent
b2b720c597
commit
802018e16e
@ -39,6 +39,15 @@ checkVersion()
|
|||||||
strcat(buffer, lineBuffer);
|
strcat(buffer, lineBuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//CHECK FOR TEXT IN buffer
|
||||||
|
if (strcmp(buffer, "") == 0)
|
||||||
|
{
|
||||||
|
fprintf(stderr, "You probably aren't connected to internet! This release could be unsafe!\n");
|
||||||
|
|
||||||
|
//WAIT FOR 5 SECONDS
|
||||||
|
sleep(5);
|
||||||
|
}
|
||||||
|
|
||||||
//CLEANUP
|
//CLEANUP
|
||||||
fclose(fileBuffer);
|
fclose(fileBuffer);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user