Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This crash was introduced by the std::chrono changes in commit a9d53f3. The problem occurs because 1) std::chrono is based on an int64_t where QThread::wait expects an uint64_t, and 2) newer versions of Qt treat ULONG_MAX as a special value. The fix is to map the maximum std::chrono value to ULONG_MAX. This commit also protects from negative numbers being passed into the wait call and having them be inadvertently mapped to very large numbers. Closes #312.
- Loading branch information