Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2010-04-21 07:03:01 +0000
committerEike Stepper2010-04-21 07:03:01 +0000
commit8de18d6517f8b6f5cb667707c433784878941417 (patch)
tree49d1e28a8045a45dafb97e055c4af3b39335606b /plugins
parent431474a704d35d8afbc20013bf5da27b6fd5910b (diff)
downloadcdo-8de18d6517f8b6f5cb667707c433784878941417.tar.gz
cdo-8de18d6517f8b6f5cb667707c433784878941417.tar.xz
cdo-8de18d6517f8b6f5cb667707c433784878941417.zip
[256936] Support for Offline Mode
https://bugs.eclipse.org/bugs/show_bug.cgi?id=256936
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.net4j/src/org/eclipse/net4j/buffer/BufferInputStream.java5
-rw-r--r--plugins/org.eclipse.net4j/src/org/eclipse/spi/net4j/Connector.java2
2 files changed, 5 insertions, 2 deletions
diff --git a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/buffer/BufferInputStream.java b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/buffer/BufferInputStream.java
index 37f2606528..f7b9f12914 100644
--- a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/buffer/BufferInputStream.java
+++ b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/buffer/BufferInputStream.java
@@ -65,7 +65,10 @@ public class BufferInputStream extends InputStream implements IBufferHandler
*/
public void restartTimeout()
{
- stopTimeMillis = System.currentTimeMillis() + getMillisBeforeTimeout();
+ synchronized (this)
+ {
+ stopTimeMillis = System.currentTimeMillis() + getMillisBeforeTimeout();
+ }
}
/**
diff --git a/plugins/org.eclipse.net4j/src/org/eclipse/spi/net4j/Connector.java b/plugins/org.eclipse.net4j/src/org/eclipse/spi/net4j/Connector.java
index 3197a67149..a6e7972398 100644
--- a/plugins/org.eclipse.net4j/src/org/eclipse/spi/net4j/Connector.java
+++ b/plugins/org.eclipse.net4j/src/org/eclipse/spi/net4j/Connector.java
@@ -387,7 +387,7 @@ public abstract class Connector extends ChannelMultiplexer implements InternalCo
@Override
public IConnector getSource()
{
- return getSource();
+ return (IConnector)super.getSource();
}
public ConnectorState getOldState()

Back to the top