Deadlock if invalid format of stop words
mbyd916 opened this issue · 0 comments
mbyd916 commented
For stop words, valid format is : one stop word in each line.
Extra spaces followed stop word may cause error, and will be sent to errCh
(unbuffered channel). Refers to dictionary.go#L38.
But dictionary.go#L68 still waits for tokenCh
, therefore dictionary.go#L70 can not receive from errCh
, finally DeadLock occurs.
There is the same problem, if error(dictionary.go#L49 ) occurs.