Fixed issue where links were being queued twice.

Previously, before a link was put into the queue, the server checked it wasn't in the directory. However, a link could be in the queue but not the directory and still get put in, resulting in a duplicate.