everything related to duct tape audio suite (dtas)
 help / color / mirror / Atom feed
* [PATCH] restart "source ed" after env changes
@ 2014-12-24 23:41 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2014-12-24 23:41 UTC (permalink / raw)
  To: dtas-all

Merely converting the `before' source information to a hash is not
enough, as the `env' sub-hash is mosified in-place and shared with
the `after' hash.  So use `inspect' to serialize and snapshot the
env and rely on a string comparison.
 lib/dtas/player/client_handler.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/dtas/player/client_handler.rb b/lib/dtas/player/client_handler.rb
index c9ae2e4..37357f7 100644
--- a/lib/dtas/player/client_handler.rb
+++ b/lib/dtas/player/client_handler.rb
@@ -474,7 +474,7 @@ module DTAS::Player::ClientHandler # :nodoc:
     when "cat"
     when "ed"
-      before = src.to_state_hash
+      before = src.to_state_hash.inspect
       sd = src.source_defaults
       msg.each do |kv|
         k, v = kv.split(/=/, 2)
@@ -492,7 +492,7 @@ module DTAS::Player::ClientHandler # :nodoc:
-      after = src.to_state_hash
+      after = src.to_state_hash.inspect
       __current_requeue if before != after && @current.class == src.class

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-12-24 23:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-24 23:41 [PATCH] restart "source ed" after env changes Eric Wong

everything related to duct tape audio suite (dtas)

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://80x24.org/dtas-all
	git clone --mirror http://ou63pmih66umazou.onion/dtas-all

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 dtas-all dtas-all/ https://80x24.org/dtas-all \
	public-inbox-index dtas-all

Example config snippet for mirrors.
Newsgroups are available over NNTP:
 note: .onion URLs require Tor: https://www.torproject.org/

code repositories for the project(s) associated with this inbox:


AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git