close and reopen socket on same executor, pause recording on sleep
This commit is contained in:
1 parent
314b3f99c6
commit
09b5284aee
4 files changed
+55
-10
No files matched your search
@@ -347,6 +347,16 @@ public final class HyperionScreenEncoder extends HyperionScreenEncoderBase {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void pauseRecording() {
|
||||
if (DEBUG) Log.i(TAG, "Pausing");
|
||||
mRunning = false;
|
||||
setCapturing(false);
|
||||
if (mCaptureHandler != null) {
|
||||
mCaptureHandler.removeCallbacksAndMessages(null);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void resumeRecording() {
|
||||
if (DEBUG) Log.i(TAG, "Resuming");
|
||||
|
||||
Reference in new issue
Block a user