Azoy / Sword

Discord library for Swift
https://azoy.github.io/Sword
MIT License
179 stars 52 forks source link

Fix crash caused by attempt to access a released object #28

Closed TellowKrinkle closed 7 years ago

TellowKrinkle commented 7 years ago

The sema variable was getting released before the task was executed. I don't think retaining the semaphore or task will cause any retain cycles.

TellowKrinkle commented 7 years ago

Here's the testbot that crashes with the current library (zipped because GitHub won't allow uploading .swift files)

main.swift.zip