提交 11eae84f 编写于 作者: L liquidsnake@sapo.pt

Just fixed a bug that would generate a deadlock on the state transfer protocol

上级 83ffe256
/**
/**
* Copyright (c) 2007-2009 Alysson Bessani, Eduardo Alchieri, Paulo Sousa, and the authors indicated in the @author tags
*
* This file is part of SMaRt.
......@@ -1375,9 +1375,9 @@ public final class TOMLayer extends Thread implements RequestReceiver {
}
public boolean isRetrievingState() {
lockTimer.lock();
//lockTimer.lock();
boolean result = stateManager != null && stateManager.getWaiting() != -1;
lockTimer.unlock();
//lockTimer.unlock();
return result;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册