Hi,
I don't think this is the cause of the lock, but rather one of the event is a transition that brings you back to the same state and you reach a deadlock this way.
also, can you explain the logic behind sending two different SendEvent in the same state? that doesn't make sense, but you may have a logical case for sure.
Bye,
Jean