Skip to content

Commit

Permalink
Dropped the thread check
Browse files Browse the repository at this point in the history
The thread assertion check is more problematic than it should, giving lots of false positives, therefor it has been dropped.
  • Loading branch information
ITzTravelInTime committed Jun 27, 2021
1 parent 40094b0 commit 037c223
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Command/Command.swift
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ public final class Command: CommandExecutor{
var status = Int32()

//Be carefoul, thanks to this line the whole thread stops, it's not reccommended to use this function from the main thread
assert(!Thread.current.isMainThread, """
/*assert(!Thread.current.isMainThread, """
/-------------------------------------------------------\\
|Running a command from the main thread is unsupported!!|
\\-------------------------------------------------------/
""")
""")*/

p.process.waitUntilExit() //we need our process to be completed, so we wait i guess

Expand Down

0 comments on commit 037c223

Please sign in to comment.