Skip to content

Commit

Permalink
Merge remote-tracking branch 'alacasta/feature/enable-some-connection…
Browse files Browse the repository at this point in the history
…-indicator'
  • Loading branch information
pentix committed Dec 25, 2020
2 parents b06dd7a + 0260288 commit 68ed9f1
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions src/remote.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
#include <QProgressBar>

#ifdef WIN32
#include <windows.h>
#include <windows.h>
#else
#include <unistd.h>
#include <unistd.h>
#endif

void _custom_usleep(int sleepUs)
Expand All @@ -32,22 +32,6 @@ void _custom_usleep(int sleepUs)
#endif
}

#ifdef WIN32
#include <windows.h>
#else
#include <unistd.h>
#endif

void _custom_usleep(int sleepMs)
{

#ifdef WIN32
Sleep(sleepMs/1000);
#else
usleep(sleepMs); // usleep takes sleep time in us (1 millionth of a second)
#endif
}

Remote::Remote(QObject *qObject, SSHConnectionSettings *sshSettings)
{
ssh = ssh_new();
Expand Down

0 comments on commit 68ed9f1

Please sign in to comment.